adding link to count error

Post your Click counter digestion problems here
Post Reply
ddb

adding link to count error

Post by ddb »

I successfully get into the Admin panel. I try to add a link to track clicks by typing in the home page URL of my site, i.e. http://www.mydomainname.com

However when I click on "Add link" I receive the following error:
Can't open the id file (ids.txt) for reading!

I see that file, my hosting server is a Windows machine so I don't have to be concerned about permissioning (right?). So I am stumped. Any help is really appreciated. Thanks.
-David
dEcade_

Post by dEcade_ »

I get an error too it says:


Warning: fopen(ids.txt): failed to open stream: Permission denied in /home/swiftcur/public_html/decadecreations/ccount/index.php on line 183
Can't open the id file (ids.txt) for reading!

How do I fix this?
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

@ddb:

Most windows servers will restrict writing to files. Check if you have a folder called "cgi" or "cgi-bin". Try installing CCount in that folder. If not you will have to contact your hosting company and ask them to set write permissions to your file.

@dEcade_:

Looks like you are on a Linux server. You have to setup correct CHMOD (file permissions) for clicks.txt and ids.txt. Please search these forums (use the search function) to find tips on how to do it (search from "chmod").

Regards
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
ddb

adding link to counter error

Post by ddb »

Thank you for that reply...you were right, I needed to change the permissions of the 2 txt files to be writable.
fedra

counter can't OPEN file for READING

Post by fedra »

I'm running on a Windows server.
I'm 100% sure.
Your counter say:
Can't open the id file (ids.txt) for reading!

The script is here: http://www.soft.tahionic.com/cgi-bin/counter/index.php?
$settings['click_url']="http://www.soft.tahionic.com/cgi-bin/counter/click.php";

I've put the counter in CGI-BIN folder but I got the same error.
What should I do?

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

Post by Klemen »

Make sure your ids.txt and clicks.txt files are writable by scripts. On Windows server you might need to contact your hosting company to set the correct settings for these two files (CHMOD doesn't work).
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