RE: [PHP] file_get_contents and https

2007-05-31 Thread Jay Blanchard
[snip] I am new to PHP; using Apache 2.2 and PHP 5/Windows. I'd like to do this: $x = file_get_contents(https://user:[EMAIL PROTECTED]) I get: Warning: file_get_contents(https://...) [function.file-get-contents]: failed to open stream: Invalid argument in ... on line... [/snip] The warning

Re: [PHP] file_get_contents and https

2007-05-31 Thread Bob Hanson
Thanks, Jay. I tried it first with a simple http://; call, and that worked fine. So unless https:... requires something additional in the way of arguments, that doesn't seem to be the issue. I'm hoping someone who has done this remembers what special installation issues there might be. When

Re: [PHP] file_get_contents and https

2007-05-31 Thread David Giragosian
On 5/31/07, Stut [EMAIL PROTECTED] wrote: Bob Hanson wrote: Thanks, Jay. I tried it first with a simple http://; call, and that worked fine. So unless https:... requires something additional in the way of arguments, that doesn't seem to be the issue. I'm hoping someone who has done this

Re: [PHP] file_get_contents and https

2007-05-31 Thread Stut
Bob Hanson wrote: Thanks, Jay. I tried it first with a simple http://; call, and that worked fine. So unless https:... requires something additional in the way of arguments, that doesn't seem to be the issue. I'm hoping someone who has done this remembers what special installation issues

Re: [PHP] file_get_contents and https

2007-05-31 Thread Bob Hanson
Problem solved. Thank you all very much for such quick responses. The solution was to get ssleay32.dll from the PHP 5 ZIP distribution and put in my PHP directory. For the record: With Windows and PHP 5 all that is needed to use the https protocol in file_get_contents is to make sure that