RE: [PHP] $PHP_AUTH taking aaaaaaages
| From: | Matt Williams | Date: | Fri, 21 Jul 2000 07:47:58 +0000 |
| Subject: | RE: [PHP] $PHP_AUTH taking aaaaaaages | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-7531@lists.php.net to get a copy of this message | ||
windows php run as cgi which doesn't allow php authentication.
It needs to be installed as a module to run this
M@
-----Original Message-----
From: gfunk007 [mailto:josh@gfunk007.com]
Sent: Thursday, July 20, 2000 02:38
To: php-general@lists.php.net
Subject: Re: [PHP] $PHP_AUTH taking aaaaaaages
More details- It works on the office servers, but not on my win98
machine running xitami
-Gfunk
[-= Visit my website! http://www.gfunk007.com/ - ICQ:74477509
=-]
----- Original Message -----
From: gfunk007 <josh@gfunk007.com>
To: <php-general@lists.php.net>
Sent: Thursday, July 20, 2000 11:33 PM
Subject: [PHP] $PHP_AUTH taking aaaaaaages
Hi, I have the following code:
if(!isset($PHP_AUTH_USER) || $PHP_AUTH_USER!="root"
||$PHP_AUTH_PW!="foobar") {
Header("WWW-Authenticate: Basic realm=\"Sysadmin\"");
Header("HTTP/1.0 401 Unauthorized");
echo "You need to enter your password to access this area.\n";
exit;
}
and it makes the site take ages to load, wether the password is right
or not.
-Gfunk
[-= Visit my website! http://www.gfunk007.com/ - ICQ:74477509
=-]
--
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