Yes, the method below would work just fine if you only needed to display
one image. Trying it on a second image within the same generated page 
would give you a "headers already sent" error.

Ed

> 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

Reply via email to