4L hit counter is a very simple text based hit counter.It uses only 4 lines of PHP code.Place this script into webpage (e.g. sidebar.php for wordpress template or in a specific page as you need).This script will count the number of times a page is called and store this number into a simple text file(e.g. hits.txt). To use the script above you need to create a folder “counter” and chmod to 0755 .If this doesn’t work try using 0777 instead of 0755 then create a text file “hits.txt” in the counter folder and chmod to 0644 or 0777 if 0644 doesn’t work.
Download this script
PHP source code included