hi,
why don't work this script?
<?php
if(!isset($PHP_ AUTH_USER)) {
header ('WWW-authenticate: basic realm="Area Privata"');
header ("Status: 401 Unauthorized");
echo "Non sei autorizzato";
exit;
}
else {
echo "La Tua Password: ".$PHP_AUTH_PW. "<br />";
echo "Il Tuo Username: ".$PHP_AUTH_USE R."<br />";
}
?>
....if i put username and password the script
always open the authenticate window!
is the problem in my php.ini or/and htppd.conf ?
thank you,
Simone
why don't work this script?
<?php
if(!isset($PHP_ AUTH_USER)) {
header ('WWW-authenticate: basic realm="Area Privata"');
header ("Status: 401 Unauthorized");
echo "Non sei autorizzato";
exit;
}
else {
echo "La Tua Password: ".$PHP_AUTH_PW. "<br />";
echo "Il Tuo Username: ".$PHP_AUTH_USE R."<br />";
}
?>
....if i put username and password the script
always open the authenticate window!
is the problem in my php.ini or/and htppd.conf ?
thank you,
Simone
Comment