Count site visitors in PHP

As you can see the script use simple PHP functions to create, read, write and close the text file. 
You can extend it using session to identify unique…