note 73035 added to function.flock

From: Date: Wed, 07 Feb 2007 05:01:54 +0000
Subject: note 73035 added to function.flock
Groups: php.notes 
Request: Send a blank email to php-notes+get-123022@lists.php.net to get a copy of this message
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. ---- Server IP: 216.194.113.175 Probable Submitter: 68.63.188.52 ---- Manual Page -- http://www.php.net/manual/en/function.flock.php Edit -- https://master.php.net/note/edit/73035 Del: integrated -- https://master.php.net/note/delete/73035/integrated Del: useless -- https://master.php.net/note/delete/73035/useless Del: bad code -- https://master.php.net/note/delete/73035/bad+code Del: spam -- https://master.php.net/note/delete/73035/spam Del: non-english -- https://master.php.net/note/delete/73035/non-english Del: in docs -- https://master.php.net/note/delete/73035/in+docs Del: other reasons-- https://master.php.net/note/delete/73035 Reject -- https://master.php.net/note/reject/73035 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#123022) next »