It does not work! This is what I tried... besides the f function, I removed the spaces [code] <?php /* the person's url should be along the lines of: http://yourserver.com/counterpage.php?name=1.1.1.1 where 1.1.1.1 is the ip of the person that you are recording the count for conversely you could change that to be whatever you want. */ //First, get the person's ip address... $ip = $_SERVER['REMOTE_ADDR']; //Then read your file into an array: $file = file($_GET['name'] . ".txt"); //Then use in_array to see if it's in there: if (in_array($ip, $file)) { //if it's in the array, then that person has already been counted. echo "Your ip has already been counted. The current count is: " . count($file); } else { //otherwise, add them, and count them: array_push($file, $ip); echo "Your ip has been recorded. The current count is: " . count($file); //now write the file back to itself $open = f open("ipsforperson.txt", 'w'); f write($open, implode("\n",$file)); f close($open); } ?> [/code]