[EMAIL PROTECTED] (Brad Bonkoski) wrote: >It would probably be best to include the absolute path to the images. >so instead of: <img src="file.gif"> use: <img src='c:\project\htmls\file.gif'> >Is something like that possible?
??? forget this... this will only work on some browsers and as long as you keep the files exactly there. >Otherwise at the very least you should use: <img src='htmls\file.gif'> <img src="htmls/file.gif"> (slash instead of back slash). >> In c:\project\htmls there are several HTML documents which refer to images >> in the project\htmls directory with tags like <img src="file.gif"> >> >> In my PHP script in c:\project I include "htmls/file.html" and the HTML file >> renders alright from the script, but the image's path is c:\project\file.gif >> when the page is rendered, not c:\project\htmls\file.gif like it should be. If you include a file into a php script like you do, the HTML-paths will be relative to that php script, not to the original HTML-file. PHP includes the file as is (imagine it puts the HTML code at the place of the include statement) The browser does not know that there is another HTML file, it only sees the output of the php script. Christoph -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php