Re: include question
| From: | Brad Bonkoski | Date: | Wed, 15 Jan 2003 22:03:56 +0000 |
| Subject: | Re: include question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-131774@lists.php.net to get a copy of this message | ||
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?
Otherwise at the very least you should use: <img src='htmls\file.gif'>
HTH
-Brad
Ryan wrote:
> 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
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php