You are here: Re: image src and relative path « PHP Programming Language « IT news, forums, messages
Re: image src and relative path

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация