Logan R Logan
· December 4, 2014
In this turorial, if anyone having a little toruble as me with this code of the unique hit counter, at this line :
fwrite($handle, $ip_adress. "\n"); (who knows why, but the script places not only the ip adress & a new line)
just change the position of the new line character, place it before the $ip_adress string like this:
fwrite($handle, "\n". $ip_adress);
and the counter script will write only the ip adresses into the ip.txt file ;-)
The counter will work, and will only count the unique hits if the ips are not already in the datebase, i mean i the ip.txt file.