Author |
Message |
07/05/2004 14:46:29
|
Anonymous
|
I am using cpanel with the advanced php guestbook. When I try to edit the templates I receive these error messages
Warning: fopen(./templates/body.php): failed to open stream: Permission denied in /home/mytammy/public_html/memorial/lib/admin.class.php on line 180
Warning: fwrite(): supplied argument is not a valid stream resource in /home/mytammy/public_html/memorial/lib/admin.class.php on line 181
Warning: fclose(): supplied argument is not a valid stream resource in /home/mytammy/public_html/memorial/lib/admin.class.php on line 187
What should I do?
Thanks
|
|
07/05/2004 22:06:10
|
amber222
Graduate
Joined: 07/05/2004 21:13:07
Messages: 586
Offline
|
I'm a newbie, but maybe you need to set permissions on the directories /Memorial and/or /lib to 777 and see if that helps? Whenever i got these kinds of errors, I changed permissions, and things worked.
|
|
10/05/2004 08:18:22
|
Jam'n
Graduate
Joined: 07/01/2003 17:31:39
Messages: 166
Location: Netherlands
Offline
|
Hi,
Amber222 is right, most of the time ths is a chmod question.
You shouldn't set Memorial to 777, because you give everybody write permission to your root directory.
Here is how I have the chmod setup:
admin 755
doc 755
img 755
lang 755
lib 755
public 777
templates 777
tmp 777
|
Jam'n
------------------------------------------------
Only the man who's truly educated
understands that he knows very little...
------------------------------------------------ |
|
|