CCount won't work

Post your Click counter digestion problems here
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Try this one:
http://www.phpjunkyard.com/extras/chmod.zip

Then try opening the "write.php" one again.
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
Katy
Posts: 15
Joined: Sun Feb 12, 2006 4:15 pm

Post by Katy »

Do I just need to upload it to my server?

Ok, I've uploaded it.

http://www.my-stuff.be/ccount/write.php

Nothing changed.
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Did you upload the chmod.php one? I can't open it:
http://www.my-stuff.be/ccount/chmod.php
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
Katy
Posts: 15
Joined: Sun Feb 12, 2006 4:15 pm

Post by Katy »

Hmm, I did upload it, but it disappeared! lol Anyway

http://www.my-stuff.be/ccount/chmod.php

http://www.my-stuff.be/ccount/write.php
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

I believe that means your host doesn't allow PHP scripts to write to files (I know everyone is having problems with PHP scripts file handling at GoDaddy hosting).

I suggest you contact your host and ask if writing to files from PHP scripts (using fopen()) is disabled. You can even give them the URLs of these test scripts (fopen.php, chmod.php, write.php)

Please post back their answer.
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
Katy
Posts: 15
Joined: Sun Feb 12, 2006 4:15 pm

Post by Katy »

I'll try! Thank you! I don't use GoDaddy by the way...
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Woops, sorry, the topic starter does, not 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
delphilord
Posts: 1
Joined: Tue Mar 27, 2007 5:20 pm

A BUG?

Post by delphilord »

I have this problem too.

Can't open the id file (ids.txt) for reading!

http://www.shayan-soft.com/ccount11/fopen.php
OK
http://www.shayan-soft.com/ccount11/write.php
OK
http://www.shayan-soft.com/ccount11/phpinfo.php


*************
I found that fopen with "rb" parameter is ok,but with "wb" not working
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

"rb" is for reading (binary-safe), "wb" is for writing. If wb doesn't work it means the script doesn't have permission to write to the file.

Make sure files clicks.txt and ids.txt are writable by the script. Since you're on Windows server CHMOD won't help so you might want to ask your host to set the permissions.
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
sparkiii
Posts: 1
Joined: Wed Apr 04, 2007 12:48 am

Followed all instructions above and all OK but counter wont

Post by sparkiii »

I am hosted at Godaddy but here are the PHP files you said to upload and check

http://www.cancermusic.org/ccount/phpinfo.php
http://www.cancermusic.org/ccount/fopen.php
http://www.cancermusic.org/ccount/write.php
http://www.cancermusic.org/ccount/chmod.php

My download /Link page is

http://www.cancermusic.org/down.htm


This still will not add download or clicks to the page....sorry would appreciate any help.

Nat
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Everything seems to be fine - id counts the download and shows number of downloads on your page. Not sure what the problem is?
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
Pietro
Posts: 1
Joined: Sun May 27, 2007 3:51 pm

Post by Pietro »

Hi Klemen,
have followed all steps of uploads e.g. fopen, chmod, info and write. But have still the usual error. Have GoDaady as host.
All is at www.mombasanorthcoast.com/ccount password: admin

Regards
Pietro
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Hi,

The problem with GoDaddy is they have some PHP functions to work with files disabled on some servers so no script that uses files works there. Contact them and ask if fopen() for PHP is disabled on your server and if yes, they should move you to a Linux server with file functions enabled.
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