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

2004-12-15 Thread Jason Barnett
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.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


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

2004-12-15 Thread Gerard Samuel
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