473,322 Members | 1,425 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,322 software developers and data experts.

Registered PHP Streams (fshockopen error while opening a https stream) urgent help needed

Hello All

I am running PHP5.0.2 over apache 1.3.29 and openssl-0.9.7d on a Debian
Linux and with a fake (internal)ip.
Php Configure command './configure' '--with-apxs=/www/bin/apxs'
'--with-openssl-dir=/usr/local/src/webserver/openssl-0.9.7d/'
'--enable-trans-sid' '--disable-libxml'
Registered PHP Streams : php, file, http, ftp
Registered Stream Socket Transports : tcp, udp, unix, udg
allow_url_fopen : On On

Now when i try to open a https url via it gives me this error

[Wed Jun 15 19:03:36 2005] [error] PHP Warning: fsockopen() [<a
href='function.fsockopen'>function.fsockopen</a>]: unable to connect to
ssl://www.testcall.com:443 (Unable to find the socket transport
&quot;ssl&quot; - did you forget to enable it when you configured PHP?)
in /www/htdocs/testcon.php on line 2

I am trying to fix this from last few days but not successful can some
please help me its very urgent.
Do I need to register ssl and https as registered php streams? and if
so how do i register them.

Thankyou
Regards
Dhaval Choksi

Jul 17 '05 #1
2 9132
You need to compile in OpenSSL support to PHP -- if it is compiled in
properly then you will see ssl as a registered stream socket transport
and https as a registered PHP stream.

Change the --with-openssl-dir to --with-openssl in your ./configure
command and recompile.

Jul 17 '05 #2
Hi Jasper,

Thanks for the reply.

I have got php configured with --with-openssl and working. Now I can
see SSL and HTTPS in the php info page. But now if i try and run the
script it gives me a connection refused(111) error. but the same url is
accessiable via the web browser. Any clue why this happens

regards
dhaval

Jul 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Marc Cromme | last post by:
I would like to ask a question about (good ?) style and possibilities in mixing C FILE* and C++ file streams. The background is that I want to use the C libpng library from within C++, but I...
11
by: Kobu | last post by:
I have a question about C's abstract "streams" (that I can't seem to FULLY understand from reading several tutorials). Streams seems to suggest that input can be treated continously if needed....
1
by: Chris | last post by:
I'm reading up on streams and I have two articles that seem to conflict with each other. One article describes streams and lists a few of the major ones (FileStream, Memory Stream, Network...
4
by: Rafał Maj Raf256 | last post by:
Hi, I wrote few filters working on streams of bytes, in example enciption, UTF-8 decoding and such. Now I wonder how can I turn them into classes derived from std::stream(?) or in other way to use...
2
by: Abhishek | last post by:
what are the STDUPDATE, STDERR, STDOUT and STDIN streams and how does one access these streams in C language. I am aware of the function fprintf(FILE *fp, char * format, char *s) which puts the...
0
by: Chuck Anderson | last post by:
How do you make Php be able to open secure streams (see "Registered PHP streams" in the first block of phpinfo() output). I run WAMP on my home PC (Windows XP Pro - Apache 2.0.5.5 - MySQL - and...
1
by: gangs | last post by:
I need to know how can I open a file which is named using UTF-16 encoding in unicode. I am desperately trying to open the file using the wofstream typedef, but even it takes the parameter as const...
1
by: beatTheDevil | last post by:
Hello all, I have a question that concerns how C++ input streams (istream, ifstream, istringstream, etc.) behave using the extraction (>>) operator when at the end of a stream's contents. For...
3
by: Rik Wasmus | last post by:
I had some problems on 1 particular server (up to 3 others with the same PHP&SOAP version work, 1 of which with the same OS) with constructing a SOAP client: FAIL: <?php...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.