ok here is what the text file contains. the text file is called a.txt
ignore this
216.86.101.9
207.216.252.214
and here is my php the php file is called joe3.php3
<?php
$ip=@$REMOTE_ADDR;
$writeip="\n";
$filename="a.txt";
$fileopen=fopen($filename,"r");
$contents=fread($fileopen,'10000000');
fclose($fileopen);
$pos=strpos($contents,$ip);
$fp=fopen($filename,"a+");
if ($pos==false) {
echo "False";
fwrite($fp,$writeip);
fwrite($fp,$ip);
} else {
fwrite($fp,"");
}
?>
when someone goes onto a different page in my website i want to remove their ip address if it is in the text file.
thanks again
-Madmee