Ramesh,

Images are not in HTML. Rather, they are only referenced in HTML.

So, if you are reading the file, the references to the images need to 
still be valid. Consider this:

<img src="./images/image.png">

If this is in HTML located at http://www.example.org/, then it means (if 
the image shows up) there is an image at:

http://www.example.org/images/image.png

If you read this HTML file and place it on your server:

http://www.ramesh.org/

Then you need to have an image here:

http://www.ramesh.org/images/images.png

Hopefully that helps explain it. PHP just gets the HTML for you in this 
case. It is your job to make sure the HTML is still valid. It might be 
easier for you to use a base tag to make all relative links refer to the 
original. For example:

<base href="http://www.example.org/";>

If you include this tag prior to reading the HTML file, relative URLs 
will use that as the base, thus the images will still be pulled from the 
original server.

Happy hacking.

Chris

Ramesh Nagendra Pillai wrote:

>I had developed an application which uploads html
>files to the server. My problem is after uploading
>HTML files with images I tried to view it with read
>file function, I am not getting the images in the HTML
>file, I am using all php file uploading functiond for
>uploading,
>


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

Reply via email to