I am developing application on google app engine for php, I need to use file_get_contents to parse a website.
However, I met a problem from my server. For example, I run a single line of code like below:
<?php
$html = file_get_contents('http://www.google.com');
?>
The server returns warnings and cannot execute what I plan to do.
Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: A non-recoverable error occurred during a database lookup. in C:\gae_work\helloworld\helloworld.php on line 3
Warning: file_get_contents(http://www.google.com): failed to open stream: php_network_getaddresses: getaddrinfo failed: A non-recoverable error occurred during a database lookup. in C:\gae_work\helloworld\helloworld.php on line 3
Any similar experience? Please!