Re: [PHP] Re: fopen never ends?

2008-02-19 Thread Paul van Brouwershaven
The timeout is not the problem, the probleem is I'm not getting the ssl (like the peer cert) info into the stream_context_get_options Jim Lucas wrote: Paul van Brouwershaven wrote: Nathan Rixham wrote: I don't think this is a php problem, just load the url up in a browser and you'll see the s

Re: [PHP] Re: fopen never ends?

2008-02-19 Thread Jim Lucas
Paul van Brouwershaven wrote: Nathan Rixham wrote: I don't think this is a php problem, just load the url up in a browser and you'll see the same, appears to be a misconfigured server at the otherside - probably confused about not being passed a name based "host" header in the request. I know

Re: [PHP] Re: fopen never ends?

2008-02-19 Thread Richard Lynch
On Tue, February 19, 2008 5:49 pm, Chris wrote: > >>> Perhaps concider moving to fsockopen or stream_socket_client with >>> timeout parameters to solve your issue. >> >> fsockopen has no context > > Maybe I'm missing something but it returns a resource just like fopen. > > http://php.net/fsockopen

Re: [PHP] Re: fopen never ends?

2008-02-19 Thread Chris
Perhaps concider moving to fsockopen or stream_socket_client with timeout parameters to solve your issue. fsockopen has no context Maybe I'm missing something but it returns a resource just like fopen. http://php.net/fsockopen -- Postgresql & php tutorials http://www.designmagick.com/ --

[PHP] Re: fopen never ends?

2008-02-19 Thread Paul van Brouwershaven
Nathan Rixham wrote: I don't think this is a php problem, just load the url up in a browser and you'll see the same, appears to be a misconfigured server at the otherside - probably confused about not being passed a name based "host" header in the request. I know that my browser is also waiting

[PHP] Re: fopen never ends?

2008-02-19 Thread Nathan Rixham
Paul van Brouwershaven wrote: When you run the folling script, it will never ends? I have seen this more then once, I know that there is no service running at the target host, but why is the script not printing the failed message? It's only with a few ip-number I have this problem. if ($fp =