- Jul 30, 2001
- 515
- 0
- 0
I am just starting to learn IIS, php, and mySQL and I'm trying to run those on my local computer so that I can test my pages without having to upload every 3 seconds to my hosting company. One thing that doesn't seem to work is this. I have a very simple PHP file. All it really does is spit out html. But for some reason it isn't linking to my graphics appropriately.
I have all my webpage files in the ../inetpub/wwwroot directory, and all my pics in a directory labeled HTML under the ../inetpub/wwwroot directory (../inetpub/wwwroot/HTML). Then in my index.php file I have references to my image files as something like this:
<img src="HTML/logowbgd.gif" width="265" height="110">
on my hosted site, everything works fine, so I think I have an idea as to where the webserver/php server is looking for the files. I would imagine "HTML/logowbgd.gif" means stating in the directory the index.php is in, and then going to the HTML directory and looking for logowbgd.gif. But for whatever reason it only gives me deadlinks. I am just wondering if IIS is looking in another directory or something. I doubt it is a simple spelling mistake, since i just grabbed the files from my original hosting company's servers. Does anybody have any idea what is going on?
I have all my webpage files in the ../inetpub/wwwroot directory, and all my pics in a directory labeled HTML under the ../inetpub/wwwroot directory (../inetpub/wwwroot/HTML). Then in my index.php file I have references to my image files as something like this:
<img src="HTML/logowbgd.gif" width="265" height="110">
on my hosted site, everything works fine, so I think I have an idea as to where the webserver/php server is looking for the files. I would imagine "HTML/logowbgd.gif" means stating in the directory the index.php is in, and then going to the HTML directory and looking for logowbgd.gif. But for whatever reason it only gives me deadlinks. I am just wondering if IIS is looking in another directory or something. I doubt it is a simple spelling mistake, since i just grabbed the files from my original hosting company's servers. Does anybody have any idea what is going on?