Reading files over SSL using fopen or fsockopen
| From: | Dan Mullen | Date: | Tue, 11 Mar 2003 13:35:22 +0000 |
| Subject: | Reading files over SSL using fopen or fsockopen | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-139130@lists.php.net to get a copy of this message | ||
Hi,
I am trying to read the contents of a file using fopen or fsockopen over a
secure SSL connection. I have a script working fine over a non-SSL
connection, but it just won't work over SSL. I have tried using fsockopen
with the port set to 443, (I have checked this and the file I am trying to
read is on a server where the secure port is set to 443).
I am using PHP 4.3.0 on a Linux machine with OpenSSL installed. Has anyone
got any ideas how I might be able to get this working? If it's not possible
to read files over SSL using PHP, I will need to come up with another
solution pretty quickly, so any help is much appreciated.
Thanks,
Dan