Mailinglisten-Archive |
Hi, try this : <?php if ($PHP_AUTH_USER==$my_user) { Header("WWW-authenticate: basic realm=\"do_auth:$do_auth\""); Header("HTTP/1.0 401 Unauthorized"); echo "Cancel It\n"; exit; } else { echo "AUTH_USER : ---".$PHP_AUTH_USER."---<br>\n"; echo "AUTH_PW : ---".$PHP_AUTH_PW."---<br><br>\n"; echo "<a href=\"$PHP_SELF?my_user=".rawurlencode($PHP_AUTH_USER)."\">Try Again</a><br>\n"; } ?> Gruss, Alex
php::bar PHP Wiki - Listenarchive