i couldnt find out what is wrong with this script ,
can anbody explain

$ip=fopen("ip.txt", 'r+');
$adam=fread($ip,filesize($adam));
fclose($ip);
if(stristr($adam,$_SERVER[REMOTE_ADDR]))
echo "an entry submitted from this ip already";
else
{
..
//block 1
..
}

the ip.txt
10.8.0.21 10.8.5.21 10.8.7.21 10.8.0.24

although users ip is for example 10.8.0.21, the script doesnt echo warning,
instead it goes throug the block 1,
thanks for any assistance,

ps: i hope , this thread isnt off -topic ,if so , please warn



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

Reply via email to