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



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to