Re: File locking & file_[get|put]_contents
| From: | Jason Barnett | Date: | Wed, 15 Dec 2004 14:25:08 +0000 |
| Subject: | Re: File locking & file_[get|put]_contents | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-204400@lists.php.net to get a copy of this message | ||
Gerard Samuel wrote:
I was wondering. Does file_get_contents() or file_put_contents() utilise any kind of file locking? ThanksNot that I am aware of (I haven't checked source on this so someone correct me if I'm wrong here). file_get_contents() is a shortcut for using the functions fopen, fgets and fclose. So if you need file locking you'll have to flock.