PHP Counter

In case you have problems with some other PHPJunkyard script (not that there are THAT many).
Post Reply
captainron19
Posts: 8
Joined: Thu Jun 07, 2007 1:01 pm

PHP Counter

Post 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
captainron19
Posts: 8
Joined: Thu Jun 07, 2007 1:01 pm

Post 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?)
captainron19
Posts: 8
Joined: Thu Jun 07, 2007 1:01 pm

Post by captainron19 »

Disregard - i got it - I had to CHMOD the new log file to 666
pirado
Posts: 1
Joined: Thu Aug 16, 2007 1:24 am

same error, fail to cahnge CHMOD

Post 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
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post 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.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Post Reply