RE: [PHP-WIN] server error: authenticate

From: Date: Thu, 01 Feb 2001 01:05:20 +0000
Subject: RE: [PHP-WIN] server error: authenticate
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-5297@lists.php.net to get a copy of this message
r u running php as a module or CGI? Ignatius > -----Original Message----- > From: Nicholas_Chen@compal.com [mailto:Nicholas_Chen@compal.com] > Sent: Thursday, 1 February 2001 11:58 > To: php-windows@lists.php.net > Subject: [PHP-WIN] server error: authenticate > > > Dear All, > > I don't think there is something wrong with the following > piece of script, > but it does make Apache send a 500-server-internal-error. The > error.log of > Apache indicates > > "malformed header from script. Bad header=HTTP/1.0 401 > Unauthorized ...". > > Would you please give me a hand? Thank you very much! > > Best regards, > > Nicholas Chen > PS. Error occurred on Abria SQL Lite with Windows 98 > > The script is: > <?php > if (!isset( $PHP_AUTH_USER )) > { > Header( "WWW-Authenticate: Basic realm=\"member\"" ); > Header( "HTTP/1.0 401 Unauthorized" ); > exit; > } > else > { > echo "Hello, $PHP_AUTH_USER<p>"; > } > ?> >

« previous php.windows (#5297) next »