Page 1 of 1

adding link to count error

Posted: Tue Mar 29, 2005 7:48 pm
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

Posted: Tue Mar 29, 2005 9:55 pm
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?

Posted: Wed Mar 30, 2005 2:45 pm
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

adding link to counter error

Posted: Thu Mar 31, 2005 1:42 pm
by ddb
Thank you for that reply...you were right, I needed to change the permissions of the 2 txt files to be writable.

counter can't OPEN file for READING

Posted: Sun Oct 16, 2005 1:33 pm
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.

Posted: Sun Oct 16, 2005 3:09 pm
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).