Re: Re: File locking & file_[get|put]_contents

From: Date: Wed, 15 Dec 2004 22:25:22 +0000
Subject: Re: Re: File locking & file_[get|put]_contents
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-204442@lists.php.net to get a copy of this message
Jason Barnett wrote:
Gerard Samuel wrote:
I was wondering. Does file_get_contents() or file_put_contents() utilise any kind of file locking? Thanks
Not 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.
Thats what I figured. It would have been nice to have an option to lock with those functions. Thanks for your reply...

« previous php.general (#204442) next »