> What do mean with "wont work"? Does the if expression
> allway evaluate to false, or what?
>
Indeed. 3 attempts and I'm out. On exiting, the 2 variables still contain empty
strings.
> By the way, you might like to check out:
>
> http://nl.php.net/manual/en/security.registerglobals.php
>
I d
56
Subject: [PHP-WIN] User authentication problem
Hi all,
I've always utilized basic user authentication by including the
following code in my protected files:
if ($_SERVER['PHP_AUTH_USER']!='name' ||
$_SERVER['PHP_AUTH_PW']!='password')
{
Symeon Charalabides,Helloļ¼
I think your code is absolutely right,because I used it like that before.
I don't know what happened to it,but I could give you some suggestions:
1.Make sure if there is any error message when an error occurs.Because other
error codes will result in halting the
Hi all,
I've always utilized basic user authentication by including the following code in
my protected files:
if ($_SERVER['PHP_AUTH_USER']!='name' || $_SERVER['PHP_AUTH_PW']!='password')
{
header("WWW-Authenticate: Basic realm=\"Website administration\"");
header("HTTP/1.0 401