Error messages for "add.php" file

More
18 years 2 months ago #174 by leftezi
After every entry in my guestbook the visitor see that:
Code:
Guestbook Entry Result: Warning: fopen(data/message_post.log): failed to open stream: Permission denied in /home/xxxx/public_html/guestbook/add.php on line 164 Warning: fwrite(): supplied argument is not a valid stream resource in /home/xxxx/public_html/guestbook/add.php on line 165 Warning: fclose(): supplied argument is not a valid stream resource in /home/xxxx/public_html/guestbook/add.php on line 166

The entry is succesfull but with the above error messages on the top

These 3 lines in "add.php" file are:
Code:
164 $fp = fopen("data/message_post.log", "a"); 165 fwrite($fp, $message_log_string); 166 fclose($fp); 167 }
Any Help?

Please Log in or Create an account to join the conversation.

More
18 years 2 months ago #175 by Pete
Hi,

You need to give Read, Write and Execute Permission to all the files in the "data" folder. Please CHMOD 777 on all 3 files inside the "data" folder, and that should solve your problem.

DigiOz Webmaster
www.digioz.com

Please Log in or Create an account to join the conversation.

More
18 years 2 months ago #176 by leftezi
OK Thank You, Pete
Thats it

Please Log in or Create an account to join the conversation.

More
17 years 5 months ago #673 by tabiihab
what is CHMOD 777??? how can i do this??? :shock:

Please Log in or Create an account to join the conversation.

More
17 years 5 months ago #674 by Pete
CHMOD 777 is a command that you can execute on a file either through your ftp software or through shell terminal on your web server. For msot FTP software, all you have to do is to select the file in question, right click on the file, select the CHMOD command, and check all checkboxes giving read, write and execute to Owner, Group and User.

DigiOz Webmaster
www.digioz.com

Please Log in or Create an account to join the conversation.

Time to create page: 0.121 seconds
Powered by Kunena Forum