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

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

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.