again little problem
| From: | Erik | Date: | Wed, 01 May 2002 21:18:36 +0000 |
| Subject: | again little problem | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-13472@lists.php.net to get a copy of this message | ||
hi,
i run on my website a toplist build with php ther is an admin section but it
is not password protected so i wrote a user authentication script like this
<?php
$user = 'username';
$pass = 'pass';
$ip = getenv("REMOTE_ADDR");
if(!isset($PHP_AUTH_USER)){
Header("WWW-Authenticate:Basic realm=\"DelphiVillage\"");
Header("HTTP/1.0 401 Unauthorized");
echo "hi $ip do not hit the cancel button please.";
exit;
}else{
if(($PHP_AUTH_USER == 'username')&&
($PHP_AUTH_PW == 'pass'))
Header("Location:index.php");
else
print "he $ip what are you trying to do ?.";
}
?>
the scritpt works fine the password box pops up i fill in the correct values
click ok and then internet explorer 6 keeps on saying "website found waiting
for reply" it should redirect to "index.php" in the index.php files is
<?php
require("login.php");
?>
the rest is html coding
i think this is a bug in internet explorer i'll try netscape to see what
happens ..........
it keeps on saying website found waiting for reply ?
regards
Erik