include question
| From: | Ryan | Date: | Wed, 15 Jan 2003 21:52:44 +0000 |
| Subject: | include question | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-131772@lists.php.net to get a copy of this message | ||
Hello all,
I'm have a PHP script that works in a folder.. for the sake of clarity we'll
call it c:\project
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.
Is there any way to change the "working directory" so when I include a file
images are on the page, too?
Thanks in advance!
--
Ryan Cassin
rcassin@supernova.org