Re: Missing icons
Brought to you by:
iridium
From: Martin G. <gim...@gi...> - 2003-05-10 09:22:29
|
"John Corry" <jo...@ne...> writes: > I just downloaded phpweather and installed it on my windows machine > running apache. > > I set up a virtual host in httpd.conf resolving to phpweather > directory. > > When I generate a report, icons are missing on the page, even though > the source generated has what looks like a corretn path to the > icons. > > The config file lists 'icons/' as the icons directory. Yep, you've found the correct option --- this is the relative path that is put into the HTML. > When I use windows explorer to look in the phpweather/icons > directory, all of the icons are there. But when I browse that > directory through the webserver, I get all these weird > non-phpweather files...WTF!? It's almost like there's a symlink or > something...though nothing like that has been set up for this > directory/vhost (not that I even could on windows) Hehe, this does look strange... But there's a perfectly natural explaination :-) I bet you're seeing a directory listing like this: Index of /icons Name Last modified Size Description Parent Directory 18-Aug-2001 15:21 - a.gif 22-Feb-1996 12:45 1k a.png 30-May-2001 09:47 1k alert.black.gif 22-Feb-1996 12:45 1k alert.black.png 30-May-2001 09:47 1k alert.red.gif 22-Feb-1996 12:45 1k alert.red.png 30-May-2001 09:47 1k ... This comes from the default Apache configuration which has this line: Alias /icons/ /usr/share/apache/icons/ It's these icons that are used when Apache makes directory listings. I suggest that you put the icons for PhpWeather in another directory, or that you don't move them at all. -- Martin Geisler My GnuPG Key: 0xF7F6B57B See http://gimpster.com/ and http://phpweather.net/ for: PHP Weather: Shows the current weather on your webpage and PHP Shell: A telnet-connection (almost :-) in a PHP page. Join Freenet: http://gimpster.com/downloads/freenet/ |