You are here: Re: how to set Read timeout ? « PHP Programming Language « IT news, forums, messages
Re: how to set Read timeout ?

Posted by Janwillem Borleffs on 11/14/05 00:34

Lisa Pearlson wrote:
> So I want a 'blocking' read operation, but one that doesn't block
> forever, but times out.
> I know how many bytes I expect when doing a read operation, so
> perferably I tell the read operation how many bytes to read.. if it
> is not received within x seconds, it should time out.
>
> How can this be done in PHP?
>

With PHP v > 4.3, you should be able to use stream_set_timeout for this:

http://www.php.net/stream_set_timeout


JW

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация