Posted by Jerry Stuckle on 01/02/06 05:34
Chung Leong wrote:
> Well, if the images aren't within the webroot, then the web server
> won't serve them...
>
Not true. You can serve them through PHP, e.g.
<img src="showimg.php"...>
And showimg.php can be something like:
header('Content-type: image/gif');
header('Content-length: '.filesize($img_filename));
$file_pointer = fopen('/some/other/directory/img.gif', 'rb');
fpassthru($file_pointer);
fclose($file_pointer);
The graphic can reside anywhere on the system which is accessible to the
Apache process (not just under DocumentRoot).
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
[Back to original message]
|