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...
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php