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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux