Accessing protected folder

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
vivekjain
Forum Commoner
Posts: 76
Joined: Thu Jan 08, 2004 12:38 am

Accessing protected folder

Post by vivekjain »

Hi,
We have a prtected folder on the server, and would like the users to be able to access the protected folder, on clicking of a link, and without having to enter the username and pwd. I guess its possible using PHP, can anyone please let me know how this can be done?

Thanks
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Post by Christopher »

I am guessing that you mean that it is protected with HTTP authentication. The manual is of course the place to look for that:

http://www.php.net/manual/en/features.http-auth.php
(#10850)
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

Re: Accessing protected folder

Post by s.dot »

vivekjain wrote:without having to enter the username and pwd
Isn't the point of a protected folder to have it well.... protected? :P
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
vivekjain
Forum Commoner
Posts: 76
Joined: Thu Jan 08, 2004 12:38 am

Protected Folder

Post by vivekjain »

Yes, it is to have it protected to the general public, but to people whom I want to give access, instead of them entering an username and pwd, would want them to just click on a link and gives them access
Post Reply