Forum Moderators: coopster

Message Too Old, No Replies

PHP & openSSL

All ok, but fopen();

         

indian

12:08 am on Oct 10, 2004 (gmt 0)

10+ Year Member



Hello, I hope i finally can get some help for my problem.

First, my system.
XP pro, Apache 2.0.52 w/mod_ssl, openSSL 0.9.7d, PHP 4.3.9
local server, used for maintance of online web domains.

Everything seams to work fine with https and so on, but when i try to connect with fopen() in PHP to a online https connection i can't connect.
The connection is to our creditcard validator (sorry about my english, this is not my native language).

The error i get, isn't a server error, but just an error included in the script telling me that connection can't be established, and asking if i've got openssl. I do, I've got the latest version too.

Now, I can run these scripts from my linux mandrake 10.0 box, but I hate working in linux(don't start a war please).

Anyone who knows what this can be?
the .dll's are copied all over the place just to make sure.....
Been working for a week on this.

In short! Everything works fine local, but fopen() won't work online for https addresses.

[edited by: jatar_k at 4:47 am (utc) on Oct. 10, 2004]
[edit reason] removed email [/edit]

ergophobe

3:27 pm on Oct 10, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



- are you sure that openssl is compiled into the online server? In phpinfo() verify that you have the "--with-openssl" option set in your configure command (I odn't think that will be there in WinXP because you don't compile it in) and scroll down and look for the openssl section

- is the online server Windows? You said you don't like liinux and that the linux server runs, so I'm assuming the problem is with a win server. If it's running IIS, did you check out the warning at the very end of the fopen() help page. Supposedly fixed in version 4.3.7

- what version of PHP? From the user-contributed notes it seems that https with openssl only works in version 4.3+