[PHP] RE: file locking...

2009-03-03 Thread bruce
Hi Dennis... Thanks for the reply... Here's my solution up to now.. might change in the future... The problem: App has a bunch of clients that need to get a separate/unique list of files from a master server app. The files are created by the master server process, and reside on the filesystem

[PHP] Re: File Locking during *other* file operations

2004-12-17 Thread Jason Barnett
Gerard Samuel wrote: Im talking about file locking during deleting, and moving files. Is it possible to perform file locking for these file operations? If so, can you provide psuedo code. Thanks Sure... just acquire the exclusive lock like you would for writing to a file, but do the delete / move

[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,

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

[PHP] Re: File locking in PHP???

2004-07-15 Thread Manuel Lemos
Hello, On 07/15/2004 12:28 PM, Scott Fletcher wrote: Hi! I saw the php function flock(), since I never used it before so I thought I would ask you folks a couple of questions. 1) Is this function good or is there a better function somewhere that I'm not aware of? It depends on what you want to