In PHP, how can i get fopen to timeout very fast when opening a local file?

Axuplex

New Member
I'm having a problem with PHP where i'm writing to a file very often, and sometimes it takes a long time to open that file.The complete description is here:http://stackoverflow.com/questions/3759345/fopen-file-locking-in-php-reader-writer-type-of-situationMy question is how can I get fopen to timeout in, say, 50ms.I looked at stream-context-create but that seems to be for HTTP, or at least, if it'll work for local files, I'm not sure how to specify the option in the array.Any ideas?Thank you!
Daniel
 
Back
Top