| 
 Posted by hakim on 11/18/05 13:42 
Hi, 
 
I have written a simple guestbook in php which writes the contents in a 
file while using flock. But I have read that this is not always save. 
 
So some people suggested to use a database instead. But if I use mysql, 
then my customers have to pay more for the webspace. Actually, I would 
prefer to use a simple database like dbm 
(http://www.php.net/manual/de/ref.dbm.php) and write the information in 
a local file. 
 
Under http://www.php.net/manual/de/ref.dbm.php in the last not of the 
User Contributed Notes some says that the return codes are nadly 
documentated or wrong. 
 
Is dbm a save way to give several scripts/processes at the same time 
the ability to read/write from the same file. Or are there maybe others 
which php programmers prefer. But remember I want to write the data to 
a file and not to database service... 
 
Thanks a lot...
 
  
Navigation:
[Reply to this message] 
 |