RE: [PHP] SSL problems.
| From: | John W. Holmes | Date: | Tue, 27 May 2003 02:52:16 +0000 |
| Subject: | RE: [PHP] SSL problems. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-149034@lists.php.net to get a copy of this message | ||
> I have php 4.3.1 installed on an openBSD box.
>
> This is the source code of my ssl test:
> <?
> print("<base href='B!|ÖoyRƒ
> éAhhttps://www.e-gold.com'>");
> #error_reporting(0);
> $handle =
> fopen('https://www.e-gold.com','r') or
> die('couldnt open
> https');
> print(fread($handle,9999999));
> fclose($handle);
> ?>
>
> With this simple code i get an error saying this:
> Warning: fread() [function.fread]: SSL: fatal protocol error in
> /var/www/htdocs/test.php on line 5
HTTPS is supported starting from PHP 4.3, if you have compiled in
support for OpenSSL.
> If i turn off error_reporting the script works great, but somehow with
ssl
> connections i always get an error.
I doubt it "works great". You probably just don't see the warning.
---John Holmes...