Nawet po nabiciu tych kilku dodatkowych wizyt w pliku counter.txt zapisuje się jedynie
-w pierwszej linijce: "0",
-w drugiej linijce: mój numer IP.
<? /* Just put this code into your index page, and put $unique_ip wherever you want
the counter number. */ //-------------------------------------------------------------------begin ip_filter function ip_filter($ip_array, $ip_number) { //This function checks if $ip_number is in an array of IP addresses //parameters = an array of ip addresses and an IP address //returns the ip address if the address is not already in the array //returns 999 if the ip address is in the array $ip_add=0; for($n=0;$n<count($ip_array);$n++) { if($ip_add != 999 and $n > 0) { { $ip_add=999; } else{$ip_add = $ip_number;} } } return($ip_add); } //-------------------------------------------------------------------end of ip_filter //------------------------------------------------------------------begin ip_list_read function ip_list_read($read_file) { { $p=0; { $p++; } } return($counter_file_field); } //------------------------------------------------------------------end of ip_list_read //-------------------------------------------------------------------begin ip_array_write function ip_list_write($file_name, $ip_number) { // // // // as of now the file that keeps the ip list must be created, but // it would be easy to change the switch on the fopen() function. // // // { if($ip_number != 999) { } } } //------------------------------------------------------------------end of ip_list_write $z=ip_list_read("counter.txt"); $ip_address=$REMOTE_ADDR; $y=ip_filter($z,$ip_address); ip_list_write("counter.txt",$y); //------------------------------------------------------------------------------------------end of counter code--------------------------------------------- ?>