error with php 4.1
| From: | Jan Grafström | Date: | Tue, 11 Dec 2001 18:04:19 +0000 |
| Subject: | error with php 4.1 | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-77346@lists.php.net to get a copy of this message | ||
Hi!
My webhost has just updated to PHP 4.1 and now this loggin script does not
work.
I get "page can´t be found..."
---
if ( (!isset($PHP_AUTH_USER)) || ! (($PHP_AUTH_USER == $st_LOGIN) &&
($PHP_AUTH_PW == "$st_PASSWORD" )) )
{
header("WWW-Authenticate: Basic entrer=\"Admin Basta\"");
header("HTTP/1.0 401 Unauthorized");
echo "Access in-autorizado...";
exit;
}
It worked well under PHP 4.04.
Anbody knows why?
Thanks in advance for any help.
Regards,
Jan
--
Jan Grafström
Lillemans Hus AB
Sweden
46 (0)611-60920
46 (0)70-6409073