Warning: fopen

Links for php scripts

Moderators: macek, egami, gesf

Terje
New php-forum User
New php-forum User
Posts: 3
Joined: Sun Aug 17, 2003 4:43 am

Warning: fopen

Postby Terje » Sun Aug 17, 2003 4:49 am

I am trying to make a guestbook on my site. :P
But when Im push the button "OK"
(After write in Name,contry etc)
this error came:

Warning: fopen("gb.entrys", "w") - Permission denied in /xxx/xxxxx/x/xxx/xxxxx/public_html/Guestbook/gb.php on line 76


what can it bee? I have try a differet guestbooks, but I gor the same error on the same time! 8O
Pliz help.. :D

liquedus
php-forum Active User
php-forum Active User
Posts: 266
Joined: Tue Apr 08, 2003 5:18 am
Location: Ottawa, Canada
Contact:

Postby liquedus » Sun Aug 17, 2003 7:33 am

why dont you try using a mysql table instead of files?

Terje
New php-forum User
New php-forum User
Posts: 3
Joined: Sun Aug 17, 2003 4:43 am

hehe

Postby Terje » Sun Aug 17, 2003 8:07 am

Dont know how to use it.!
I have download it but.! :D

User avatar
Joan Garnet
Moderator
Moderator
Posts: 387
Joined: Sat Aug 03, 2002 2:56 am
Location: Mars
Contact:

Postby Joan Garnet » Sun Aug 17, 2003 8:17 am

That error means that you don't have write permissions with that file.
Do you have shell access ??
If so have a look at the permissions and change them.
Or maybe from the ftp account....

Terje
New php-forum User
New php-forum User
Posts: 3
Joined: Sun Aug 17, 2003 4:43 am

..

Postby Terje » Sun Aug 17, 2003 11:37 am

Okey, Im new beginner, so I hope I learn more php..
:)

User avatar
swirlee
Moderator
Moderator
Posts: 2272
Joined: Sat Jul 05, 2003 1:18 pm
Location: A bunk in the back
Contact:

Postby swirlee » Sun Aug 17, 2003 12:04 pm

As Joan said, this is a permissions problem. PHP doesn't have access to write to the file which keeps the Guestbook entries. In your FTP program, try right-clicking on the file "gb.entrys" (which, by the way, is a crass spelling error) and choosing "Properties" or "Permissions". There you may grant write access on the file. However, do not do this blindly! Instead, I recommend that you go to Google and try to learn a few things about file permissions.

sigix
php-forum Active User
php-forum Active User
Posts: 364
Joined: Mon Jul 14, 2003 9:39 pm
Location: /Earth/Xion

permissions

Postby sigix » Mon Aug 18, 2003 1:50 am

one thing check whether you have permission of file and the directory in which file resides :arrow:


Return to “PHP Scripts”

Who is online

Users browsing this forum: No registered users and 1 guest

cron