Warning: fopen(entries.txt): failed to open stream: Permissi

Dr. GBooky is here to help you with your guestbook problems ...
Post Reply
Dtails

Warning: fopen(entries.txt): failed to open stream: Permissi

Post by Dtails »

First of all; Klemen STirn, thanx for the really nice script. I'm looking forward to using it on my site, and I will, as soon as I can get it to work properly. I get a message saying:

Warning: fopen(entries.txt): failed to open stream: Permission denied in /home/rothenbo/public_html/gbook132/gbook.php on line 423

and:

Error

Couldn't open links file (entries.txt) for writing! Please CHMOD all entries.txt to 666 (rw-rw-rw)!

I'm not quite sure what this means, and would be really grateful, if you could help me.
Thanx!
Jens :P
Please answer to jens@rothenborg.com or here


[EDITED BY KLEMEN STIRN]
I have changed this post's subject and added it to "sticky" so others with same problem can see it.
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Hi there,

Thanks for the kudos.

Are you on a Linux server? If yes, you will have to do a CHMOD 666 command on entries.txt file. Check your FTP program's help to see how you can do CHMOD (or set file permissions) to files as this is different with each FTP rpgoram. Oncde you find it out either CHMOD the entries.txt file on your server to 666 or rw-rw-rw.

If you're on WIndows you will probably have to contact your host. Give them the error you get and ask if they can set write permissions to entries.txt.

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

more on guestbook

Post by Dtails »

Hello again, thanx for the info. I managed to work it out. I would like to ad a link with some additional info on the cdmod rules, if there is someone who is a little lost, like I was. I might help explain some things. Thanks again, great script!

http://www.ibdhost.com/help/ftp/

Look at the bottom of the page
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Hi,

Glad you got it working. I have made this post sticky and changed the subject so other people having the same problem will quickly find it (and I know many people have this problem).

Regards,

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

Post by Klemen »

A note for everyone having problems with file upload and CHMOD: I wrote FTP and CHMOD tutorial which should help you get started.

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