467,212 Members | 1,162 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,212 developers. It's quick & easy.

got errstr: "25: Inappropriate ioctl for device" when open ssl....

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

Jul 17 '05 #1
  • viewed: 3134
Share:
1 Reply
Although no body answer my post, I still like to share my luck on SSL
connection:

I tried the script on another server it works perfect. However, if check
phpinfo both the servers have OpenSSL support enabled. I really have
no idea what make the difference....

Alex Shi

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


Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

12 posts views Thread by bhennon@gmail.com | last post: by
388 posts views Thread by maniac | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.