Reply to Re: [PHP] LDAP and .htaccess

Your name:

Reply:


Posted by Richard Lynch on 04/28/05 07:21

On Wed, April 27, 2005 12:08 pm, Bret Walker said:
> Well, the download.php script would allow me to protect certian files,
> but is there a way to protect all files? For example, images that I
> would like to include in my php pages.

As noted, you could put your images outside the webtree and then use PHP
to serve them all up.

You would want to do this only for images you really cared about,
probably, for performance reasons.

> Could I silently pass a username and password to htaccess? Can htaccess
> be set to use a php script instead of a htpasswd file?

Search http://php.net/ for HTTP Authentication. You'll find a PHP script
that sends the same headers as .htaccess/htpasswd, and then you can use
LDAP there, or MySQL or whatever you want.

--
Like Music?
http://l-i-e.com/artists.htm

[Back to original 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

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