Dan Anderson <[EMAIL PROTECTED]> wrote: > Because of restrictive safe mode settings I cannot display images from > their folder. Is there a way to embed them within a web page?
I'm not entirely clear what you mean by not being able to display images from their folder, can you explain that more. HTML doesn't allow for embeded images. > > i.e. > > <?php > print "<IMAGE START>\n"; > readfile('image.jpeg'); > print "</IMAGE END>\n"; > ?> Ok, assuming that the image files are outside the public web tree and you can read them with a script. You will have to write a php script that will read the file (sending the appropriate headers). So your script will generate html like <img src="/showimage.php?file=filename.jpg"> then showimage.php will do something: header('content-type: appropricate/type'); // content-length would be good readfile($file); HTH Curt -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php