Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[tlug] PHP Error



Can anyone take a look at this code please:

<?
if (!isset($_SERVER['PHP_AUTH_USER'])) {
	header('WWW-Authentication: Basic Server="Secured Area"');
	header('HTTP/1.0 401 Unauthorized');
	echo'<P>You have hit the cancel button</P>';
	exit();
	}else{
		echo"<p>Hello {$_SERVER['PHP_AUTH_USER']}.</p>";
		echo"<p>You entered {$_SERVER['PHP_AUTH_PW']} as your password</p>";
		}
?>

For some reasons is not running well, everything goes smooth, but it's missing something. Can anyone shed some light. PHP is not my strength.
-- 
Alvarez <alvarezes@example.com>


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links