Posted by Bob on 09/20/06 17:24
Kim André Akerø wrote:
> My bad; $_SERVER["PHP_AUTH_USER"].
>
> $PHP_AUTH_USER won't work unless register_globals is set to "on" in the
> PHP configuration.
I set register_globals ON. When I logged in and ran this script:
<?php
$auser = $_SERVER["PHP_AUTH_USER"];
echo 'Current user is'.$auser.'<BR>';
?>
The user was blank!!
Have any idea what's wrong here?
Navigation:
[Reply to this message]
|