You are here: Re: Testing if a server is running with almost no permissions « PHP Programming Language « IT news, forums, messages
Re: Testing if a server is running with almost no permissions

Posted by Simon on 01/12/06 17:59

>
> So I thought your provider was blocking that functionality.
>
> But You probably mean that they are working, but you cannot use the
> timeout
> on them? right?

Right,

>
> Nevermind, I am always slow on workingdays. :P
>
> And sorry: If that is your problem, I don't know the answer.
>
> However the manual says this:
>
> http://nl3.php.net/manual/en/function.fsockopen.php
> ----------------------------------------------
> Note: If you need to set a timeout for reading/writing data over the
> socket, use stream_set_timeout(), as the timeout parameter to fsockopen()
> only applies while connecting the socket.
> -----------------------------------------------
>
> Does that help?

Thanks a lot, you were right.

My fsockopen(...) was returning ok even if there was no connection

but adding stream_set_timeout($fp, 2); did the trick.

Thanks.

>
>
> Regards,
> Erwin Moller

Simon

 

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

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