RE: [PHP] file_get_contents and https



[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:pw@xxxxxxx";)

I get:

Warning: file_get_contents(https://...) [function.file-get-contents]:
failed to open stream: Invalid argument in ... on line...
[/snip]

The warning that you get is "Invalid argument..." Have you read
http://us2.php.net/file_get_contents to make sure that you are including
all needed arguments?
.



Relevant Pages

  • Re: if/else statement, form-check
    ... check if both are empty (invalid), ... Why doesn't PHP have an if/then/else way of doing things... ... As of now, I have chosen to have name, email and phonenumber as obligatory fields - they all get checked, and they all need input or the error-page displays. ... you are looking for flexible input validation scheme based upon an arbitrary set of values where some values have an 'either of' relationship. ...
    (comp.lang.php)
  • Re: LOL, preg_match still not working.
    ... as invalid - as they are in the expression they should be valid, ... Subject: [PHP] Re: LOL, preg_match still not working. ... Your sample text contains newlines. ... echo 'oops'; ...
    (php.general)
  • Re: LOL, preg_match still not working.
    ... Beauford wrote: ... as invalid - as they are in the expression they should be valid, ... Subject: [PHP] Re: LOL, preg_match still not working. ... echo 'oops'; ...
    (php.general)
  • Re: [PHP] file_get_contents and https
    ... I am new to PHP; using Apache 2.2 and PHP 5/Windows. ... failed to open stream: Invalid argument in ... ... The warning that you get is "Invalid argument..." ...
    (php.general)
  • file_get_contents and https
    ... I am new to PHP; using Apache 2.2 and PHP 5/Windows. ... failed to open stream: Invalid argument in ... ... Bob Hanson ...
    (php.general)