No unfortunately something like that isn't possible... The HTML files
are generated by a closed-source application.

-----Original Message-----
From: Brad Bonkoski [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, January 15, 2003 5:04 PM
To: Ryan
Cc: [EMAIL PROTECTED]
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
> [EMAIL PROTECTED]
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to