ok.
doing lots of stuff thats new to me, and getting very confused.
i have a class set up which is going to be an api payment system, using hsbc.
i have a function.
here it is (in essence)
$theserverip = "xx.xx.xx.xx";
$theurl = "ssl://www.theurl.com";
$theport = 443;
$fp = @fsockopen($theserverip,$theport, $errno, $errstr, 30);
if (!$fp){
print "<h1>$errstr ($errno)</h1>\n";
} else {
$out = "POST $theurl HTTP/1.0\r\n";
$out .= "Host: ".$theserverip."\r\n";
$out .= "User-Agent: PHP Script\r\n";
$out .= "Content-type: text/xml\r\n";
$out .= "Content-length: ".strlen($this->cppData)."\r\n\r\n";
$out .= "Connection: close";
$out .= $this->cppData."\r\n";
$out .= "\r\n";
fwrite($fp, $out);
while (!feof($fp)){
$this->cppResponse = fgets($fp, 4096);
};
fclose($fp);
$this->ProcessReponse();
};
currently, im getting a 110 error (timed out).
was wondering if you could help me debug this a bit, because if i swap the settings over to even get, lets say, google... id expect to get SOME kind of html reponse.
it was giving me this error once, not sure what i did to stop it, but its not doing it currently.
Warning: fsockopen(): php_hostconnect: connect failed