Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Missing PHP registered Streams: https and ftps

0 views
Skip to first unread message

Stelios Sakalis

unread,
Jan 3, 2007, 10:46:36 AM1/3/07
to php-w...@lists.php.net
Hello Guy's,
we have a problem. Our customer is running an Internet Shop with osCommerce.
We have installed for him an Contribution for making Credit Card payments.
But when the connection to the credit card company must establish the page
shows us an error:


quote:
------------------------------------------------------------------------------
Notice: file(): Unable to find the wrapper "https" - did you forget to
enable it when you configured PHP? in
C:\Inetpub\vhosts\xxxxxxxxxxxxxx.eu\httpdocs\test_file2.php on line 10

Warning: file(https://www.saferpay.com/hosting/CreatePayInit.asp): failed
to open stream: Invalid argument in
C:\Inetpub\vhosts\xxxxxxxxxxxxxx.eu\httpdocs\test_file2.php on line 10

Notice: file(): Unable to find the wrapper "https" - did you forget to
enable it when you configured PHP? in
C:\Inetpub\vhosts\xxxxxxxxxxxxxx.eu\httpdocs\test_file2.php on line 13

Warning: file(https://www.saferpay.com/hosting/CreatePayInit.asp): failed
to open stream: Invalid argument in
C:\Inetpub\vhosts\xxxxxxxxxxxxxx.eu\httpdocs\test_file2.php on line 13

Warning: join(): Bad arguments. in
C:\Inetpub\vhosts\xxxxxxxxxxxxxx.eu\httpdocs\test_file2.php on line 13
------------------------------------------------------------------------------


Our php-info file shows us this:

quote:
------------------------------------------------------------------------------
Registered PHP Streams php, http, ftp, compress.zlib
------------------------------------------------------------------------------


We think thats the fault. How can we get "https" and "ftps" into "Registered
PHP Streams"?

We hope for your help.
Thanks in advance.

Frank M. Kromann

unread,
Jan 4, 2007, 1:39:45 AM1/4/07
to Stelios Sakalis, php-w...@lists.php.net
Loading the OpenSSL extension should help. Just add
extension=php_openssl.dll to your php.ini file and restart the web server.

- Frank

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

Stelios Sakalis

unread,
Jan 4, 2007, 3:04:23 AM1/4/07
to php-w...@lists.php.net
Hello Frank,

The extension is already loaded in the php.ini File.
I don't think this is the error.

Frank M. Kromann

unread,
Jan 4, 2007, 11:51:30 AM1/4/07
to Stelios Sakalis, php-w...@lists.php.net
Hello Stelios,

php_openssl.dll requires one or more dll's to load. Can't remember the
names off hand, but it's something like sas*32.dll. If these are not found
the extension will not load. You can check phpinfo() to see if it loads.

- Frank

Leif Gregory

unread,
Jan 4, 2007, 12:52:18 PM1/4/07
to Frank M. Kromann
Hello Frank,

Thursday, January 4, 2007, 9:51:30 AM, you wrote:
> php_openssl.dll requires one or more dll's to load. Can't remember
> the names off hand, but it's something like sas*32.dll. If these are
> not found the extension will not load. You can check phpinfo() to
> see if it loads.

libeay32.dll

A good resource to check PHP extension dependencies.
http://php.mirrors.powertrip.co.za/manual/en/install.windows.extensions.php


--
TBUDL/BETA/DEV/TECH Lists Moderator / PGP 0x5D167202
__ ____ ____ ____ Geocaching: http://gps.PCWize.com
( ) ( ___)(_ _)( ___) TBUDP Wiki Site: http://www.PCWize.com/thebat/tbudp
)(__ )__) _)(_ )__) Roguemoticons & Smileys: http://PCWize.com/thebat
(____)(____)(____)(__) PHP Tutorials and snippets: http://www.DevTek.org

99 little bugs in the code, 99 bugs in the code,
fix one bug, compile it again...
101 little bugs in the code....

us...@domain.invalid

unread,
Jan 4, 2007, 4:51:41 PM1/4/07
to php-w...@lists.php.net

To be exact, you're looking for the following libraries

ssleay32.dll
libeay32.dll

Furthermore, you're looking for those to be in the %SYSTEMROOT% directory.
The following link usually has an updated version of the files you'll
need to run ssl on windows.
http://hunter.campbus.com

Chuck Anderson

unread,
Jan 4, 2007, 7:24:03 PM1/4/07
to php-w...@lists.php.net

I have had the same question for about a year now. A year and a half
ago, I managed to get a copy of Php4 that has https and ftps as
registered streams, but I can not figure out how to do the same in Php5.

Loading the openssl extension and putting ssleay32.dll and libeay32.dll
into %SYSTEMROOT% (WINDOWS/SYSTEM32) has not helped. In fact, I still
have the openssl extension commented out in the version 4 php.ini file
and https and ftps are registered streams. (I believe I got that Php4
from the xampp package, but I am not really sure.)

If you figure this one out, I'd love to know the answer. My best guess
is that it takes a "custom" compilation of Php.

--
*****************************
Chuck Anderson • Boulder, CO
http://www.CycleTourist.com
*****************************

Frank M. Kromann

unread,
Jan 4, 2007, 11:20:08 PM1/4/07
to php-w...@lists.php.net
Here is the output from phpinfo();

Registered PHP Streams php, file, data, http, ftp, compress.zlib

and when I load the openssl extension I get

Registered PHP Streams php, file, data, http, ftp, compress.zlib, https,
ftps

I have all the PHP files in c:\php5, including the extra DLL's. I'm
running CGI for this test. (using the binaries from my site
http://kromann.info/php.php)

- Frank

Cory Collier

unread,
Jan 4, 2007, 8:09:08 PM1/4/07
to php-w...@lists.php.net
Chuck Anderson wrote:
> Stelios Sakalis wrote:
>> Hello Frank,
>>
>> The extension is already loaded in the php.ini File.
>> I don't think this is the error.
>>
>>
>>> Loading the OpenSSL extension should help. Just add
>>> extension=php_openssl.dll to your php.ini file and restart the web
>>> server.
>>>
>>> - Frank
>>
>>
>>
>
> I have had the same question for about a year now. A year and a half
> ago, I managed to get a copy of Php4 that has https and ftps as
> registered streams, but I can not figure out how to do the same in Php5.
>
> Loading the openssl extension and putting ssleay32.dll and libeay32.dll
> into %SYSTEMROOT% (WINDOWS/SYSTEM32) has not helped. In fact, I still
> have the openssl extension commented out in the version 4 php.ini file
> and https and ftps are registered streams. (I believe I got that Php4
> from the xampp package, but I am not really sure.)
>
> If you figure this one out, I'd love to know the answer. My best guess
> is that it takes a "custom" compilation of Php.
>

I've found this to be a very good tutorial for installing Apache with
SSL on Windows. You'll have to do some tweaking to adjust for apache
2.2.3. Also, If you can help it, DON'T USE INSTALLERS! Apache uses PHP
as a module without using a PHP installer.
If you install everything correctly, you shouldn't see ANY new programs
in your "Add/Remove Programs" list

Anyways, here's the link:

http://www.neilstuff.com/apache/apache2-ssl-windows.htm

Stelios Sakalis

unread,
Jan 8, 2007, 10:55:15 AM1/8/07
to php-w...@lists.php.net
Hello Cory,

"Cory Collier" <coryc...@corycollier.com> wrote


> I've found this to be a very good tutorial for installing Apache with SSL
> on Windows. You'll have to do some tweaking to adjust for apache 2.2.3.
> Also, If you can help it, DON'T USE INSTALLERS! Apache uses PHP as a
> module without using a PHP installer.
> If you install everything correctly, you shouldn't see ANY new programs in
> your "Add/Remove Programs" list
>
> Anyways, here's the link:
>
> http://www.neilstuff.com/apache/apache2-ssl-windows.htm

Sorry guys but I forgot to tell that we do not use Apache, we use the
Windows integrated IIS with php.

Luis Ferro

unread,
Jan 8, 2007, 11:20:44 AM1/8/07
to Stelios Sakalis, php-w...@lists.php.net
For IIS, check out http://www.somacon.com/p41.php ("Enabling SSL in IIS
on Windows XP
Professional").

Cheers,
Luis Ferro


Stelios Sakalis escreveu:

0 new messages