not showing css, images and php includes
Posted by: katanka (---.access.telenet.be)
Date: May 01, 2008 10:31PM

I installed wamp, the 1/2 circle is white. When I test my site, I can see all text, but no css, no images, and no php includes.

This is some of my site information in dreamweaver:

<localinfo sitename="Infosites" ftporrdsserver="FALSE" localroot="C:\wamp\www\infosites\"

<appserverinfo servermodel="PHP MySQL" urlprefix="[localhost]; connectionsmigrated="FALSE" serverobjectsversion="1" defaultdoctype="HTML" accesstype="lan" remoteroot="C:/wamp/www/infosites/" refreshremote="FALSE" testsvrbinaccesstype="none"/>

What do I do wrong?

Options: ReplyQuote
Re: not showing css, images and php includes
Posted by: yfastud (Moderator)
Date: May 02, 2008 05:04AM

Make sure to access your website through localhost; for more info check my guide here

[guides.jlbn.net]

Have fun,

FREE One A Day
FREE Photo
FREE Games
FREE Websites
FREE Portable GPS
FREE WAMP Guides

Options: ReplyQuote
Re: not showing css, images and php includes
Posted by: stevenmartin99 (---.b-ras1.blp.dublin.eircom.net)
Date: May 02, 2008 04:28PM

wat colour is the other half of the circle ?!

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]



Edited 2 time(s). Last edit at 05/03/2008 09:33PM by stevenmartin99.

Options: ReplyQuote
Re: not showing css, images and php includes
Posted by: nhekman (---.gtconnect.net)
Date: May 02, 2008 05:37PM

I'm guessing that all your links (to images, css, etc) are going to the server's root. You could post a sample so we can see.

You've said your site's root is at "C:\wamp\www\infosites". But the default configuration in a wamp installation is for "C:\wamp\www\" to be the actual server root (i.e., [localhost] serves up files in C:\wamp\www\infosites).

Therefore if your image tags, for example, are something like <img src="/foo.gif">, it will be looking for C:\wamp\www\foo.gif, NOT for C:\wamp\www\infosites\foo.gif.

There are several ways to fix the problem, depending on what you're trying to do. You can put your site directly in c:\wamp\www (that's what I do), or change your image urls so they start like "/infosites/foo.gif", or make them relative ("foo.gif"winking smiley, or edit your apache configuration file so that c:\wamp\www\infosites is set as the root.

Nate

Options: ReplyQuote
Re: not showing css, images and php includes
Posted by: yfastud (Moderator)
Date: May 02, 2008 10:17PM

@ nhekman
I'm not quite agree w/ your theory since katanka stated he's using Dreamweaver and already define the root for website is the folder infosites which is inside folder c:/wamp/www and every relative paths for images of any script inside this folder infosites will auto find the images in that particular folder

@ Steven
He he.. he he... ;-)
I know you're just kidding ;-) since wamp tray icon is only half circle and katanka already stated his hlaf circle is all white and no way he could find another half???

@ katanka
Again, make sure to use full tag <?php ... ?> and access your websites through localhost. BTW, when using Dreamweaver, you must define paths for both website and css which seems you're missing

Have fun,

FREE One A Day
FREE Photo
FREE Games
FREE Websites
FREE Portable GPS
FREE WAMP Guides

Options: ReplyQuote
Re: not showing css, images and php includes
Posted by: katanka (---.access.telenet.be)
Date: May 03, 2008 09:25PM

Thanks, i've found a solution: I had to delete the "/" before my images, links, includes, css link.

Options: ReplyQuote


Sorry, only registered users may post in this forum.