Socket Question
Posted: Thu Feb 26, 2009 8:11 pm
PHP Version 5.2.5
Redhat Linux
WHM
Cpanel
I am receiving this error
Warning: fsockopen() [function.fsockopen]: unable to connect to ssl://:443 (Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP?)
When I use this code:
Any help is appreciated,
Justin
Redhat Linux
WHM
Cpanel
I am receiving this error
Warning: fsockopen() [function.fsockopen]: unable to connect to ssl://:443 (Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP?)
When I use this code:
Code: Select all
$posturl = "ssl://" . $host;
$header = "Host: $host\r\n";
$header .= "User-Agent: PHP Script\r\n";
$header .= "Content-Type: text/xml\r\n";
$header .= "Content-Length: ".strlen($content)."\r\n";
$header .= "Connection: close\r\n\r\n";
$fp = fsockopen($posturl, 443, $errno, $errstr, 30);
Any help is appreciated,
Justin