file_get_contents() will not open remote file.

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

kjcornwell
Forum Newbie
Posts: 8
Joined: Thu May 25, 2006 8:28 am

Post by kjcornwell »

Thanks for the interesting discussion however...

What about file_get_contents()?

And why are there no error messages?
kcornwell
Forum Newbie
Posts: 1
Joined: Thu May 25, 2006 8:26 am

bump

Post by kcornwell »

Please read the first post. I have yet to solve this issue.

Thanks,
Kevin C.
User avatar
neogeek
Forum Newbie
Posts: 24
Joined: Sun May 14, 2006 4:24 am

Post by neogeek »

From what I know file_get_contents() will only be able to fetch a remote file in PHP5. I'm not sure it ever worked in PHP4 or any version before that. The function that I wrote works for fetching any kind of external file and has worked successfully for me on every project I have required it for ever since I wrote it. I guess the only other thing I can suggest is what timvw suggested and use CURL.

Hope that helps.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

file_get_contents() and its siblings have been able to fetch remote pages since at least PHP 4.0.3.. It appears to have been included in versions before it.
Post Reply