Re: [PHP] file_get_contents and https
- From: hansonr@xxxxxxxxxx (Bob Hanson)
- Date: Thu, 31 May 2007 08:25:24 -0500
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 I look on the web I see lots of discussion, but it's pretty hard to figure out how much of it is currently applicable and how much of it is ancient history.
Bob
Jay Blanchard wrote:
[snip]The URL for file_get_contents doesn't give many clues to its use with https.
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?
--
Robert M. Hanson
Professor of Chemistry
St. Olaf College
Northfield, MN
http://www.stolaf.edu/people/hansonr
If nature does not answer first what we want,
it is better to take what answer we get.
-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900
.
- Follow-Ups:
- Re: [PHP] file_get_contents and https
- From: Stut
- Re: [PHP] file_get_contents and https
- References:
- RE: [PHP] file_get_contents and https
- From: "Jay Blanchard"
- RE: [PHP] file_get_contents and https
- Prev by Date: RE: [PHP] file_get_contents and https
- Next by Date: Re: [PHP] file_get_contents and https
- Previous by thread: RE: [PHP] file_get_contents and https
- Next by thread: Re: [PHP] file_get_contents and https
- Index(es):
Relevant Pages
|