note 93070 deleted from function.error-log by danbrown

From: Date: Fri, 21 Aug 2009 17:03:06 +0000
Subject: note 93070 deleted from function.error-log by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-159757@lists.php.net to get a copy of this message
Note Submitter: grobmeier at gmail dot com ---- This method is as performant as file_put_contents is. That leads me to the opinion that this one is behaving like fopen, fwrite, fclose for each call. That makes it very slow and imho not very usable for logging. Better option then this is to open the file, lock it flock, write and unlock it. If you have a new logging event, you should lock it again. End of request is fclose. This is how it will work in Log4PHP now. More to this benchmark can be found on my blog: http://tiny.cc/phpwrite

« previous php.notes (#159757) next »