Richard
04-04-2003, 01:27 PM
I made this script and it loads on every page of my site to count the number of page views:
$fb = fopen("/home/domains/blahblahblah.com/user/htdocs/log/pages.txt", "r");
$num = fread( $fb, 100);
$fbsoma = ($num + 1);
fclose($fb);
$fc = fopen("/home/domains/blahblahblah.com/user/htdocs/log/pages.txt", "w");
fwrite( $fc, $fbsoma, 100);
fclose($fc);
But about once a week the number in the file resets to 0 :confused:
$fb = fopen("/home/domains/blahblahblah.com/user/htdocs/log/pages.txt", "r");
$num = fread( $fb, 100);
$fbsoma = ($num + 1);
fclose($fb);
$fc = fopen("/home/domains/blahblahblah.com/user/htdocs/log/pages.txt", "w");
fwrite( $fc, $fbsoma, 100);
fclose($fc);
But about once a week the number in the file resets to 0 :confused: