Re: Is it possible.... ?
| From: | Richard Lynch | Date: | Thu, 07 Dec 2000 23:48:32 +0000 |
| Subject: | Re: Is it possible.... ? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-29244@lists.php.net to get a copy of this message | ||
You can have PHP send the headers that .htaccess would be sending.
See the manual http://php.net
You could also look into mod_auth_mysql, which marries Apache and MySQL to
do authentication -- no PHP involved at all.
----- Original Message -----
From: "Andrius Lokotash" <andrius@eol.ee>
Newsgroups: php.general
Sent: Thursday, December 07, 2000 3:21 AM
Subject: [PHP] Is it possible.... ?
> Hi all.
>
> This is simple problem but hard to solve.
>
> You can protect your web page using 2 basic methods;
>
> 1) Use .htaccess with .htpasswd
>
> 2) Use password request header and verify it in all subscripts
>
> Well my problem in short is this;
>
> Altho i like method 1, since it protects all content i still would need to
> store all my user information in MySQL database. Method 2 is not efficent
> enough, since it will protect only php files.
>
> Is it possible to declare .htaccess file for Apache to request password
but
> in addition to set verification method pointing at some php file
(auth.php)
> ?
>
> If it is possible then how to do it and what i would need?
>
> Thanx for you time.
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>