Page 2 of 2
Posted: Fri Feb 17, 2006 8:27 pm
by Klemen
Try this one:
http://www.phpjunkyard.com/extras/chmod.zip
Then try opening the "write.php" one again.
Posted: Fri Feb 17, 2006 8:32 pm
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.
Posted: Fri Feb 17, 2006 8:51 pm
by Klemen
Did you upload the chmod.php one? I can't open it:
http://www.my-stuff.be/ccount/chmod.php
Posted: Fri Feb 17, 2006 8:56 pm
by Katy
Posted: Fri Feb 17, 2006 9:02 pm
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.
Posted: Fri Feb 17, 2006 9:03 pm
by Katy
I'll try! Thank you! I don't use GoDaddy by the way...
Posted: Fri Feb 17, 2006 9:07 pm
by Klemen
Woops, sorry, the topic starter does, not you

A BUG?
Posted: Tue Mar 27, 2007 5:27 pm
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
Posted: Tue Mar 27, 2007 8:15 pm
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.
Followed all instructions above and all OK but counter wont
Posted: Wed Apr 04, 2007 12:52 am
by sparkiii
Posted: Wed Apr 04, 2007 11:17 am
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?
Posted: Sun May 27, 2007 4:04 pm
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
Posted: Sun May 27, 2007 5:40 pm
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.