Page 1 of 1

fsockopen and SSL in PHP4

PostPosted: 28. December 2006 17:39
by bno
Hi all,

I switched xampp (for windows, version 1.5.5) tot PHP4.
When I try this line:

Code: Select all
$fsp = fsockopen("ssl://ideal.secure-ing.com", 443, $errno, $errstr, 300);


I get the following warning:

Warning: fsockopen() [function.fsockopen]: no SSL support in this build in C:\Program Files\xampp\htdocs\test\test.php on line 2

After switching back to PHP5 this runs fine.

I am lost... Should I make adjustments in httpd.conf?

Thx! (I can read German)

PostPosted: 28. December 2006 19:02
by Wiedmann
no SSL support in this build

I think this message is clear?

PostPosted: 28. December 2006 19:14
by bno
Wiedmann wrote:I think this message is clear?


It is... But, correct me if I'm wrong, xampp should come with ssl support, shouldn't it? Anyhow, is it possible to activate SSL within the xampp distribution? Or should I replace the PHP directory with another SSL-enabled version?

PostPosted: 28. December 2006 19:56
by Wiedmann
Anyhow, is it possible to activate SSL within the xampp distribution?

No, not with PHP4.

Or should I replace the PHP directory with another SSL-enabled version?

Yes, if you need SSL streams in PHP4 you must install another version (with SSL support).