Hello,
I got an error message when trying following script:
<?
//......
if (!$handle = fsockopen ("ssl://my.com", 443, $errno, $errstr, $timeout =
30)) {
print "$errno: $errstr\n";
return -1; /* connection failed */
}
/* The my.com site WAS installed with a SSL certificate, and it works
perfect
if access from a browser with 'https://' prefix. */
//......
?>
The errstr said "25: Inappropriate ioctl for device".
I'm using PHP 4.3.0, but not sure if properly compiled with OpenSSL support.
How can I check out this? And, even compiled with OpenSSL, can it work
properly for site installed with branded SSL certificate?
Thanks in advance!
Alex Shi
I got an error message when trying following script:
<?
//......
if (!$handle = fsockopen ("ssl://my.com", 443, $errno, $errstr, $timeout =
30)) {
print "$errno: $errstr\n";
return -1; /* connection failed */
}
/* The my.com site WAS installed with a SSL certificate, and it works
perfect
if access from a browser with 'https://' prefix. */
//......
?>
The errstr said "25: Inappropriate ioctl for device".
I'm using PHP 4.3.0, but not sure if properly compiled with OpenSSL support.
How can I check out this? And, even compiled with OpenSSL, can it work
properly for site installed with branded SSL certificate?
Thanks in advance!
Alex Shi
Comment