SV: [PHP-WIN] $PHP_AUTH_USER

From: Date: Sun, 11 Nov 2001 17:34:33 +0000
Subject: SV: [PHP-WIN] $PHP_AUTH_USER
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-10346@lists.php.net to get a copy of this message
I am not running it as a CGI script. It's install on my computer together with Apache. I tried several script's but the don't work. Do I have to work with the php.ini file or? Morten -----Oprindelig meddelelse----- Fra: Ross Fleming [mailto:r.fleming@totalise.co.uk] Sendt: 11. november 2001 17:24 Til: morten; php-windows@lists.php.net Emne: RE: [PHP-WIN] $PHP_AUTH_USER How are you using PHP with the webserver? If you're running it as a CGI script then you can't access those variables Ross -----Original Message----- From: morten [mailto:morten@achtung.dk] Sent: 11 November 2001 14:55 To: php-windows@lists.php.net Subject: [PHP-WIN] $PHP_AUTH_USER Hi, I am trying to find out how to use $PHP_AUTH_USER. The problem is that I don't progress because of an 'Internal Server Error'. I tried this script from php.net: <?php if(!isset($PHP_AUTH_USER)) { header("WWW-Authenticate: Basic realm=\"My Realm\""); header("HTTP/1.0 401 Unauthorized"); echo "Text to send if user hits Cancel button\n"; exit; } else { echo "<p>Hello $PHP_AUTH_USER.</p>"; echo "<p>You entered $PHP_AUTH_PW as your password.</p>"; } ?> But the only answer is this: Internal Server Error. Is it the php.ini file that's not configured well, or..? Morten -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net For additional commands, e-mail: php-windows-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.windows (#10346) next »