[PHP] Re: How to tell if a socket is connected

2006-06-12 Thread Michael W.
Adam Zey wrote: > 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 ch

[PHP] Re: How to tell if a socket is connected

2006-06-12 Thread Adam Zey
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