By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,746 Members | 1,928 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,746 IT Pros & Developers. It's quick & easy.

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

P: n/a
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
Share this Question
Share on Google+
1 Reply


P: n/a
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.