note 73035 deleted from function.flock by danbrown
| From: | danbrown@php.net | Date: | Mon, 18 May 2009 00:36:55 +0000 |
| Subject: | note 73035 deleted from function.flock by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-155395@lists.php.net to get a copy of this message | ||
Note Submitter: Corey
----
In response to korostel:
Using files for things like counters is a very bad idea...especially when you're requiring
scripts to wait until the file is available before accessing the file.
You should use a database like MySQL or PostgreSQL since they are much better performance-wise
(especially MySQL).
If you need the data to be in a file for some reason you can always use a cron job that reads the
current data from your database and then writes it to the file.