DigiOz Programming Forum


Feel free to post any Programming related questions you may have here

guestbook

Please Post Questions for All Other DigiOz Scripts Here.

Moderator: Pete

guestbook

Postby weg » 07/20/2012 03:28

Hi, I am a novice in php (and new on this forum). I tried to get the guestbook working and it works until i want to submit a message onto it. The "data/list.txt" file doesn't unlock:
<Warning: flock() expects parameter 1 to be resource, boolean given in add.php on line 208>
I tried a number of things (like changing the '2' in the " flock($fp,2);" into a '1') but nothing seems to work.
Anyone have any good ideas?

Thnx, Weg
weg
 
Posts: 1
Joined: 07/20/2012 02:49

Re: guestbook

Postby Pete » 07/20/2012 08:52

Hello Weg, welcome to DigiOz.

Please make sure to set the permission on the "/data" directory and each of the files inside of it to CHMOD 777. To do so, connect through your FTP Software and right click on the folder, choose properties and check all check boxes for Read, Write and Execute.

Pete
DigiOz Webmaster
http://www.digioz.com
User avatar
Pete
Site Admin
 
Posts: 519
Joined: 09/29/2005 14:48
Location: Chicago, IL


Return to PHP

Who is online

Users browsing this forum: No registered users and 1 guest

cron