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

Dr. GBooky is here to help you with your guestbook problems ...
Post Reply
Russ_E
Posts: 7
Joined: Thu Sep 18, 2008 4:24 pm

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

Post 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
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post 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.
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
Russ_E
Posts: 7
Joined: Thu Sep 18, 2008 4:24 pm

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