Hallo, ik heb een apache webserver als service geinstaleerd op win2k met de php 4.1.1.
Als ik dit script draai.
<?php
// File Name: auth01.php
// Check to see if $PHP_AUTH_USER already contains info
if (!isset($PHP_AUTH_USER)) {
// If empty, send header causing dialog box to appear
header('WWW-Authenticate: Basic realm="My Private Stuff"');
header('HTTP/1.0 401 Unauthorized');
echo 'Authorization Required.';
exit;
}
// If not empty, display values for variables
else {
echo "
<P>You have entered this username: $PHP_AUTH_USER<br>
You have entered this password: $PHP_AUTH_PW<br>
The authorization type is: $PHP_AUTH_TYPE</p>
";
}
?>
Dan blijf hij nadat ik user name en pass heb opgegeven de authorisatie popup weer geven.
Volgens mij zit er geen fout in het script, heb ik iets mischien niet goed ingesteld?
tnx
Robbert
Als ik dit script draai.
<?php
// File Name: auth01.php
// Check to see if $PHP_AUTH_USER already contains info
if (!isset($PHP_AUTH_USER)) {
// If empty, send header causing dialog box to appear
header('WWW-Authenticate: Basic realm="My Private Stuff"');
header('HTTP/1.0 401 Unauthorized');
echo 'Authorization Required.';
exit;
}
// If not empty, display values for variables
else {
echo "
<P>You have entered this username: $PHP_AUTH_USER<br>
You have entered this password: $PHP_AUTH_PW<br>
The authorization type is: $PHP_AUTH_TYPE</p>
";
}
?>
Dan blijf hij nadat ik user name en pass heb opgegeven de authorisatie popup weer geven.
Volgens mij zit er geen fout in het script, heb ik iets mischien niet goed ingesteld?
tnx
Robbert