473,396 Members | 2,018 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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
1 3439
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: bhennon | last post by:
Hey all, I have a small php script that calls a random image at the following page. http://www.2006ymcanationals.com/random.php IT WORKS IF I go directly to the above link. I am trying to...
8
by: Lian | last post by:
Hi all, It is a newbie's question about html tag "img". The attributes "title" and "alt" for "img" seems having the same function. So what is the main difference between them? Can i use them at...
388
by: maniac | last post by:
Hey guys, I'm new here, just a simple question. I'm learning to Program in C, and I was recommended a book called, "Mastering C Pointers", just asking if any of you have read it, and if it's...
9
by: rsine | last post by:
I have developed a program that sends a command through the serial port to our business system and then reads from the buffer looking for a number. Everything worked great on my WinXP system, but...
0
by: David T | last post by:
Has anyone run across this error? When calling any of several visualization routines from FiPy, Python quits with a Bus Error I'm using MacOS X Tiger 10.4.3, and I've tried several builds...
1
by: marco.loskamp | last post by:
Hallo, Kurzversion: erstellt Access eine volle Kopie der Tabelle, wenn mit Currentdb.OpenRecordset("Tabelle") eine Tabelle zum Direktzugriff geöffnet wird? Hintergrund: Tabelle 1.25GB,...
17
by: pbd22 | last post by:
Hi. How does one return a range of rows. I know that "Top 5" will return rows 0 - 5 but, how do I get 6 - 10? thanks
1
by: Gina31 | last post by:
Hello all, I am new to this website, but have found it to be very helpful so far. I am having trouble with a pocket PC mobile device. When I attempt to log into my application, I receive the error...
1
by: syed asghar abbas | last post by:
I am Student of the BS(CS) final Term,and my final term projectg is BarCoder Reder in Invertory System i complete the Database but some problem of Barcode any one can help me in the project. My...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.