RE: [PHP-WIN] PHP Authentication

From: Date: Thu, 21 Feb 2002 15:46:09 +0000
Subject: RE: [PHP-WIN] PHP Authentication
Groups: php.windows 
Request: Send a blank email to php-windows+get-12191@lists.php.net to get a copy of this message
It took some digging on the PHP-Win Archive but I found the answer a long time ago... First you have to be running PHP as an Apache module (not a CGI), and there was an extra .dll to load. Sorry I'm not more specific, but I just can't seem to remember the details. Hope this points you in the right direction. Robert W. Collins II Webmaster New Orleans Regional Transit Authority Phone : (504) 248-3826 Email : rcollins@norta.com -----Original Message----- From: jmt2que001@sneakemail.com [mailto:jmt2que001@sneakemail.com] Sent: Thursday, February 21, 2002 4:28 AM To: php-windows@lists.php.net Subject: [PHP-WIN] PHP Authentication We just switched servers from Unix to Windows NT and all our authentication stopped working. It brings up an internal server error. We installed the newest PHP and the newest Apache software. Pretty much everything else works, except the authentication won't work. I've tried many different versions of the code. Here is the last version that I tried. Any ideas on what might be causing this server error? <?php if (!isset($PHP_AUTH_USER)){ header( 'WWW-Authenticate: Basic realm="Private"' ); header( 'HTTP/1.0 401 Unauthorized' ); echo 'Authorization Required.'; exit; } else { echo 'Success!'; } ?> -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.windows (#12191) next »