我在本地使用谷歌应用引擎设置 PHP 环境进行开发,hello world 示例运行良好(https://developers.google.com/appengine/docs/php/gettingstarted/helloworld)。
但是当我尝试运行演示(F:\GAE\google_appengine\demos\php\minishell\reset.php 和 F:\GAE\google_appengine\demos\php\minishell\shell.php)时,出现以下错误:
Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: No such host is known. in F:\GAE\google_appengine\php\sdk\google\appengine\runtime\RemoteApiProxy.php on line 92
Warning: file_get_contents(http://localhost:54502): failed to open stream: php_network_getaddresses: getaddrinfo failed: No such host is known. in F:\GAE\google_appengine\php\sdk\google\appengine\runtime\RemoteApiProxy.php on line 92
Warning: session_start(): Cannot send session cookie - headers already sent by (output started at F:\GAE\google_appengine\php\sdk\google\appengine\runtime\RemoteApiProxy.php:92) in F:\GAE\helloworld\reset.php on line 21
Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at F:\GAE\google_appengine\php\sdk\google\appengine\runtime\RemoteApiProxy.php:92) in F:\GAE\helloworld\reset.php on line 21
Warning: Cannot modify header information - headers already sent by (output started at F:\GAE\google_appengine\php\sdk\google\appengine\runtime\RemoteApiProxy.php:92) in F:\GAE\helloworld\reset.php on line 24
Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: No such host is known. in F:\GAE\google_appengine\php\sdk\google\appengine\runtime\RemoteApiProxy.php on line 92
Warning: file_get_contents(http://localhost:54502): failed to open stream: php_network_getaddresses: getaddrinfo failed: No such host is known. in F:\GAE\google_appengine\php\sdk\google\appengine\runtime\RemoteApiProxy.php on line 92
如何解决?