RE: [PHP] include question
| From: | Ryan Cassin | Date: | Wed, 15 Jan 2003 22:18:39 +0000 |
| Subject: | RE: [PHP] include question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-131778@lists.php.net to get a copy of this message | ||
No unfortunately something like that isn't possible... The HTML files
are generated by a closed-source application.
-----Original Message-----
From: Brad Bonkoski [mailto:bbonkosk@tampabay.rr.com]
Sent: Wednesday, January 15, 2003 5:04 PM
To: Ryan
Cc: php-general@lists.php.net
Subject: Re: [PHP] include question
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