Posted by Michael Fesser on 12/21/07 00:43
..oO(Lars Eighner)
>In our last episode, <476a66ce$0$29602$5402220f@news.sunrise.ch>, the lovely
>and talented Bob Bedford broadcast on comp.lang.php:
>
>> I'm trying to show images that are in a protected directory.
>
>Not possible. Put the images in a world-readable directory or have users
>enter username and password. Why in the world would you think otherwise?
You can still deliver them with a script, which has full access to the
server's disk (with respect to the filesystem permissions), not only to
the document root. Of course there should be an authorization mechanism
of any kind implemented (in the script itself or by .htaccess).
Sometimes you can also use symbolic links to map those outside files
into the document root, but this depends on the server configuration.
Micha
[Back to original message]
|