Reply to flock or database

Your name:

Reply:


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...

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация