Re: using php to accesss .htaccess protected directories
- From: raj <raj@xxxxxxxxxx>
- Date: Sun, 2 Mar 2008 20:37:38 +0000
Hi mango,
I have some resources (blog, forum, wiki) inside a password protected directory using .htaccess.
I don't want to give out the master username and password to the directory, and I don't want to setup .htaccess with one username and password per user. I have a database of users and want to write a script so that once the users have logged in they can access the protected directory.
Any advice?
Thank you in advance,
Raj
On 2008-03-02 20:00:48 +0000, Mango <mango@xxxxxxxxxxxxxxxxxxx> said:
Hi Raj,
I'm not quite sure what you're asking. Are you trying to create your own login screen, rather than using the default? If so, I don't believe that is possible, at least not with .htaccess protection.
John's solutions for getting the contents of a protected page using PHP will work, but I take it that's not what you're trying to do?
Mango
raj wrote:
Hi John,
Thanks for the reply. I actually have a website with some of the php/html pages protected by htaccess (username and password). I was wondering is there any way to input the username and password once using a php script so that I can then access that part f the website too?
Thank you in advance.
Raj
.
- Follow-Ups:
- Re: using php to accesss .htaccess protected directories
- From: The Natural Philosopher
- Re: using php to accesss .htaccess protected directories
- References:
- Prev by Date: Re: using php to accesss .htaccess protected directories
- Next by Date: Re: using php to accesss .htaccess protected directories
- Previous by thread: Re: using php to accesss .htaccess protected directories
- Next by thread: Re: using php to accesss .htaccess protected directories
- Index(es):
Relevant Pages
|