PHP, nasıl bir yerel dosyayı açarken çok hızlı zaman aşımı fopen alabilirim?

0 Cevap php

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-situation

My 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.

Herhangi bir fikir?

Thank you!
Daniel

0 Cevap