You are here: Re: fsockopen's timeout parameter « PHP Programming Language « IT news, forums, messages
Re: fsockopen's timeout parameter

Posted by Andy Hassall on 12/17/05 13:59

On 17 Dec 2005 00:53:32 -0800, "yawnmoth" <terra1024@yahoo.com> wrote:

>If fsockopen is used to connect to a computer that's turned off, it
>takes $timeout seconds. Is there any way to detect whether or not a
>computer is turned off without taking $timeout seconds?

Not really. How would you tell the difference between the machine being off,
or it just being a slow connection? The symptoms are the same - no response
received within x seconds, except if you waited longer and the machine is on,
you might get a response.

--
Andy Hassall :: andy@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool

 

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

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