ok... so the counter counts and checks the IP... the code isn't finished yet but as of right now it doesn't work.. I get the same error every time... it is
Parse error: parse error, unexpected T_STRING in /opt/sys/data/1stcallmachinery_com/www/Temp/690.php on line 18
here's the code...
$IP=$_SERVER["REMOTE_ADDR"];
$IPfile="IPlist690.txt";
$fopen=fopen($IPfile, "r+");
$file_contents=fread($fp, filesize($filename));_
____fclose($fp);
$lines=explode("\n" ,$file_contents);
if(in_array($IP, $lines))
{
}
else
{ $file="counter690.txt";
$handle=fopen($file, "r+");
$hits=fread($handle,filesize("$file"));
$hits+=1;
fclose($handle);
$handle=fopen($file, "w");
fwrite($handle, $hits);
fclose($handle);
}
anybody have any insight??
-Chizzad