#23066 [Opn->Fbk]: fsocketopen fail when connecting to server where calling script run
ID: 23066
Updated by: pollita@php.net
Reported By: garfield_fr at tiscali dot fr
-Status: Open
+Status: Feedback
Bug Type: *Network Functions
Operating System: Windows 2000
PHP Version: 4.3.1
New Comment:
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php
If you can provide more information, feel free to add it
to this bug and change the status back to "Open".
Thank you for your interest in PHP.
This is *impossible* to debug without knowing the contents of
client.php and server.php.
Previous Comments:
------------------------------------------------------------------------
[2003-04-05 16:18:38] garfield_fr at tiscali dot fr
Config :
OS : Win2000
Server HTTP : IIS5
PHP 4.3.1 ISAPI
I have 2 scripts : client.php and server.php on a server.
I can use these scripts by http://mysite.domain.net/server.php and
http://mysite.domain.net/client.php.
In fact, client.php is a test script to check server.php, a web
services using nuSOAP. both scripts are using nuSOAP.php.
1/ When client.php run on server and call server.php with URL :
http://mysite.domain.net/server.php I have a
fsockopen error:
[05-Apr-2003 22:15:10] PHP Warning: fsockopen() [<a
href='http://www.php.net/function.fsockopen'>function.fsockopen</a>]:
php_hostconnect: connect failed in E:\wwwwRoot\mysite\nuSOAP\nusoap.php
on line 1352
[05-Apr-2003 22:15:10] PHP Warning: fsockopen() [<a
href='http://www.php.net/function.fsockopen'>function.fsockopen</a>]:
unable to connect to mysite.domain.net:80 in
E:\wwwwRoot\mysite\nuSOAP\nusoap.php on line 1352
2/ When I use my computer to run client.php (running at
http://10.0.0.11/client.php where 10.0.0.11 is my local
IP) and call
server.php at http://mysite.domain.net/server.php
I have a good result
and evry thing work fine.
3/ When I use my computer to run client.php (running at
http://10.0.0.11/client.php where 10.0.0.11 is my local
IP) and call
server.php at http://10.0.0.11/server.php I have a good
result and evry
thing work fine too !!!
From 1/ and 2/ I think fsockopen() can't open a connection on the
server who run the calling scripts (remember, it's in ISAPI mode)...so
maybe a bug here ?
but from why 3/ work ? my local server is in ISAPI mode to (IIS5/W2K
Pro SP3)...
conclusion : fsockopen seem to fail in some case .... I think is a bug
???
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=23066&edit=1
Thread (5 messages)