Page 1 of 1

Entries.txt file works fine, but CHMOD says it shouldn't!

Posted: Thu May 21, 2009 6:38 pm
by Russ_E
Script URL: http://clag.org.uk/comment-book/gbook.php
Version of script: 1.6
Hosting company: 1&1
URL of phpinfo.php: http://clag.org.uk/phpinfo.php
URL of session_test.php: ?
What terms did you try when SEARCHING for a solution: CHMOD

Apologies for yet another CHMOD comment, but Klemen has locked the current CHMOD sticky thread.

I am on a Unix server (full phpinfo details given above). My gbook works fine - I do not have a problem. However, when I checked my CHMOD setting for my 'entries.txt' file, the CHMOD setting as reported to me does not give external permission for changing the file. This would appear to be nonsense, as the gbook is working fine. I use WS_FTP LE as my ftp client, and here's the relevant CHMOD image for my 'entries.txt' file:

Image

Posted: Thu May 21, 2009 8:33 pm
by Klemen
Must be a server permission to allow PHP to write to (all?) files within your public_html folder (PHP probably runs under your username and not under user "nobody"). Since the script works this (like you said) really is not a problem.

Posted: Thu May 21, 2009 11:55 pm
by Russ_E
That sounds logical, Klemen. If, however, what you say is true, then there are probably widespread classes of server where the CHMOD state of 'entries.txt' does not need to be changed.

Russ