fsockopen connection error on IIS
| From: | Michael Egan | Date: | Wed, 31 Mar 2004 13:19:46 +0000 |
| Subject: | fsockopen connection error on IIS | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-181929@lists.php.net to get a copy of this message | ||
Hello all,
I'm working with somebody using IIS (honest - it's not me) to try and develop some web
services whereby a site hosted on IIS is able to access data using a nusoap client with a nusoap
server set up on a linux/apache server. I can do this satisfactorily from another linux/apache
server but my colleague is having problems doing this from IIS.
The main problem seems to be that fsockopen isn't working from their system. We have tried
running the following script:
<?php
$fp = fsockopen("www.thehostname.com", 80, $errno, $errstr, 30);
if (!$fp)
{
echo "$errstr ($errno)<br />\n";
}
else
{
echo "Success";
}
?>
But the following error is returned:
Warning: fsockopen(): unable to connect to www.thehostname.com:80 in
C:\Inetpub\wwwroot\webservice\fsocktest.php on line 2
A connection attempt failed because the connected party did not properly respond after a period of
time, or established connection failed because connected host has failed to respond. (10060)
I've searched through a few mailing list archives and the only thing I came across was the
suggestion that the client server is not allowing outgoing connections. Is there any way of testing
this or indeed any other suggestions as to what might be going wrong.
I confess I feel I'm on extremely thin ice with this - I'm not overly familiar with nusoap
and have no familiarity whatsoever with IIS. Any general pointers would be extremely welcome.
Regards,
Michael Egan