At 14:35 11.03.2003, Dan Mullen said:
--------------------[snip]--------------------
>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.
--------------------[snip]--------------------
You can't simply do a read on port 443, you need to make an SSL connection
- there's a lot more to it that just changing ports.
Have a look at cURL - this will get you the task done, without effort.
--
>O Ernest E. Vogelsinger
(\) ICQ #13394035
^ http://www.vogelsinger.at/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php