The file looks like this:
333.333.333.333
555.53.553.333
11.33.444.888
etc.....
The script I have tried looks like this:
Code: Select all
<?
$ip = $_GET['ip'];
$handle = fopen("ip2.php", "w");
foreach(file("ip.php") as $value){
if($value != $ip){ fwrite($handle, $value);
}
}
fclose($handle);
copy("ip2.php", "ip.php");
?>Any thoughts???
Thanks!