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. Its phpinfo indicates that OpenSSL is 
enabled. 

However, I also tested the script on a server with php 4.3.2
and it works perfect. Both PHPs are OpenSSL enabled but 
why behaved differently?

Thanks in advance!

Alex Shi


-- 
Regards,

Alex Shi
Stonix.com Inc.
Phone: 416-422-4466
Cell: 416-827-3685
Email: [EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to