FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


the get_file_contents function doesn't work anymore





aswapathy
What must I do to enable it?
mOrpheuS
aswapathy wrote:
the get_file_contents function doesn't work anymore

I'm assuming you received some sort of error message when trying to use this function.

If yes, can you share it with us ?
aswapathy
Warning: file_get_contents() [function.file-get-contents]: php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/aswapath/public_html/stocks/retrieve_high_yield_stocks.php on line 28

Then subsequent functions fail because no file contents were "got".

Here's what line 28 looks like:

$content = file_get_contents("http://screen.yahoo.com/b?dvy=10/&s=nm&vw=1&db=stocks&b=1");

which works on my local server, and used to work on this one.
mOrpheuS
This looks like a DNS problem

aswapathy wrote:
$content = file_get_contents("http://screen.yahoo.com/b?dvy=10/&s=nm&vw=1&db=stocks&b=1");
Try changing that line to
Code:
$content = file_get_contents("http://66.218.71.187/b?dvy=10/&s=nm&vw=1&db=stocks&b=1");
Related topics
Google's Video Sharing
Can someone help me ? Com domain setup?
this is my web sites
MP3 Players, More than just an Ipod.
phpBB 2.0.18 is RELEASED!
PHP version 5.0
Web Dimensions
TWO Problems, Password lost and diskspace :-(
[solved] html multiply list doesnt give all values
PHP Form Question
SMF forum error?
Mail problems on VPS1
God is good!
Why be moral?
Reply to topic    Frihost Forum Index -> Support and Web Hosting -> Web Hosting Support

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.