strstr-pls help

From: Date: Wed, 11 Dec 2002 17:49:47 +0000
Subject: strstr-pls help
Groups: php.general 
Request: Send a blank email to php-general+get-127858@lists.php.net to get a copy of this message
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

« previous php.general (#127858) next »