Re: authentication problem...
| From: | Christophe Chisogne | Date: | Thu, 30 Dec 2004 12:12:40 +0000 |
| Subject: | Re: authentication problem... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-205351@lists.php.net to get a copy of this message | ||
Ali a écrit :
if ( ( !isset( $PHP_AUTH_USER )) || (!isset($PHP_AUTH_PW))
|| ( $PHP_AUTH_USER != 'user' ) || ( $PHP_AUTH_PW != 'open' ) ) {
Better use $_SERVER['PHP_AUTH_USER'] instead of $PHP_AUTH_USER
and $_SERVER['PHP_AUTH_PW'] instead of $PHP_AUTH_PW.
Chapter 33. HTTP authentication with PHP
http://www.php.net/manual/en/features.http-auth.php
Christophe