Jump to content

few easy questions


Hyssar

Recommended Posts

Thanks for helping me.

 

My question is : Is there any way for a process to know if a file is locked with flock by an other process?

And : If a process requests a file that is locked, what's happening? It waits until the other one finished writing? or it ends and resolves to false?

How can I verify that a file is "free" before using it in PHP? (I would appreciate an example of code that verifies this condition).

 

Thanks,

Hyssar

Link to comment
https://forums.phpfreaks.com/topic/48076-few-easy-questions/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.