Re: How to tell if a socket is connected

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Maybe just try to read from it???

On Fri, June 9, 2006 10:56 pm, Michael W. wrote:
> Hello,
>   Can any of you tell me how to tell whether a socket (from
> fsockopen()) is
> connected or not? Specifically, whether the remote server has closed
> the
> connection? Stream_get_meta_data() does not do it; in my tests, its
> output
> does not change even when the server closes the stream.
>
> Thank you,
> Michael W.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


-- 
Like Music?
http://l-i-e.com/artists.htm

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux