Re: using php to accesss .htaccess protected directories
- From: The Natural Philosopher <a@xxx>
- Date: Mon, 03 Mar 2008 09:26:11 +0000
raj wrote:
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?
Yes. Put all the data on those pages in a database, and use a different name/password system to manage them.
.
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
- References:
- using php to accesss .htaccess protected directories
- From: raj
- Re: using php to accesss .htaccess protected directories
- From: petersprc
- Re: using php to accesss .htaccess protected directories
- From: raj
- Re: using php to accesss .htaccess protected directories
- From: Mango
- Re: using php to accesss .htaccess protected directories
- From: raj
- using php to accesss .htaccess protected directories
- Prev by Date: Re: GD text justify
- Next by Date: regular expression
- 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
|