Mailinglist Archive: opensuse (4547 mails)

< Previous Next >
PHP Globals not working on 9.0 ??
  • From: "David Rankin" <drankin@xxxxxxxxxxxxxxxx>
  • Date: Wed, 12 May 2004 00:16:46 -0500
  • Message-id: <003801c437e0$52253a70$6406a8c0@xxxxxxxxxxxxxxx>

I have a weird situation. Suse Pro 9.0. I'm trying to get the following
simple php script to work as I start working on basic authentication, but
the AUTH_USER and AUTH_PW globals never seem to get set. What is funny is
that the script works just fine on my ancient mdk 7.2 box. Anybody
experience any similar problems? Any gotchas unique to the suse install I'm
missing?? You can check my phpinfo at I don't know
what do check next.


if ((!isset( $PHP_AUTH_USER )) || (!isset($PHP_AUTH_PW))) {

header( 'WWW-Authenticate: Basic realm="Private"' );
header( 'HTTP/1.0 401 Unauthorized' );
echo 'Authorization Required.';

} else {

echo "You entered $PHP_AUTH_USER for a username.<BR>";
echo "You entered $PHP_AUTH_PW for a password.<BR>";



David C. Rankin, J.D., P.E.
Rankin * Bertin, PLLC
510 Ochiltree Street
Nacogdoches, Texas 75961
(936) 715-9333
(936) 715-9339 fax

< Previous Next >