I made this script and it loads on every page of my site to count the number of page views:

PHP Code:
 $fb fopen("/home/domains/blahblahblah.com/user/htdocs/log/pages.txt""r");
 
$num fread$fb100); 
 
$fbsoma = ($num 1); 
 
fclose($fb); 
 
$fc fopen("/home/domains/blahblahblah.com/user/htdocs/log/pages.txt""w"); 
 
fwrite$fc$fbsoma100); 
 
fclose($fc); 
But about once a week the number in the file resets to 0