Page 1 of 1

PHP Counter

Posted: Thu Jun 07, 2007 2:24 pm
by captainron19
ANy reason why my counter isnt working on www.disneytrivia.net (bottom of main page)

I followed all of the same steps when adding to another page (www.newegyptfire.com) but I cannot get this one to work

Posted: Thu Jun 07, 2007 2:31 pm
by captainron19
OK I think I got something figured out. I tried editing the index.log in the logs folder to pick up from the number my previous counter was at but when i re-uploaded the index.log the counter would not appear.

Once i deleted the file and refreshed the page the counter appeared and started at 1

Is there a trick or a way to having the counter start at a specific number (where it was with my older counter I took off?)

Posted: Thu Jun 07, 2007 2:38 pm
by captainron19
Disregard - i got it - I had to CHMOD the new log file to 666

same error, fail to cahnge CHMOD

Posted: Thu Aug 16, 2007 1:33 am
by pirado
I want to start my count hits script at 200,000 but i cant re-write the log

Does the graphcount.php file bloks the files?

SITE CHMOD 666 GUIACOMUNICATEINDEXHTM.log
550 Could not change perms on GUIACOMUNICATEINDEXHTM.log: Operation not permitted

Also I have changed the folder from logs to lgz. I have change also in the script variable
$logfile = "lgz/" . $page . ".log";

but I CANT START my conuter at 200,000 CAN YU HELP ME?

I use linux server

Thanks

Carlos

Posted: Mon Aug 27, 2007 10:47 am
by Klemen
It's possible you don't have permission to change files crated by php scripts, even if you see chmod as 666. You would have to login as server admin to do that in that case, try asking your host if they can change it for you.