RE: [PHP] file_get_contents and https
| From: | Jay Blanchard | Date: | Thu, 31 May 2007 13:17:05 +0000 |
| Subject: | RE: [PHP] file_get_contents and https | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-255908@lists.php.net to get a copy of this message | ||
[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@foo.org")
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?