我試圖遷移一個PHP應用程序谷歌App Engine的基礎設施建設我有一個類似一塊是處理會話代碼:PHP會議
<html>
<head>
<link type="text/css" rel="stylesheet" href="/stylesheets/main.css" />
</head>
<body>
<?php
session_start();
?>
</body>
</html>
當GAE SDK執行它,我得到以下錯誤和會話不跟蹤我以前的記錄集:
Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: No such host is known. in C:\Users\user\Downloads\google_appengine_1.8.1\google_appengine\php\sdk\google\appengine\runtime\RemoteApiProxy.php on line 92 Warning: file_get_contents(http://localhost:63143): failed to open stream: php_network_getaddresses: getaddrinfo failed: No such host is known. in C:\Users\user\Downloads\google_appengine_1.8.1\google_appengine\php\sdk\google\appengine\runtime\RemoteApiProxy.php on line 92 Notice: Undefined offset: 0 in C:\Users\user\Downloads\google_appengine_1.8.1\google_appengine\php\sdk\google\appengine\runtime\Memcache.php on line 564
我已在php.ini
文件中的以下值:
session.save_handler = user
session.save_path = Memcache
有沒有人知道我是否需要設置一些缺失的配置以便使用會話?
編輯:
我刪除從項目文件夾中的文件php.ini
和一些錯誤仍時有發生,有2個不同的警告還沒有出現最後一次:
Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: No such host is known. in C:\Users\user\Downloads\google_appengine_1.8.1\google_appengine\php\sdk\google\appengine\runtime\RemoteApiProxy.php on line 92 Warning: file_get_contents(http://localhost:50074): failed to open stream: php_network_getaddresses: getaddrinfo failed: No such host is known. in C:\Users\user\Downloads\google_appengine_1.8.1\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 C:\Users\user\Downloads\google_appengine_1.8.1\helloworld\helloworld.php:7) in C:\Users\user\Downloads\google_appengine_1.8.1\helloworld\helloworld.php on line 8 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at C:\Users\user\Downloads\google_appengine_1.8.1\helloworld\helloworld.php:7) in C:\Users\user\Downloads\google_appengine_1.8.1\helloworld\helloworld.php on line 8
我跑在Windows 7 Enterprise x64,php-5.4.13-Win32-VC9-x86和google_appengine_1.8.1上。
錯誤是,它無法找到或打開'localhost:63143' - 可能是本地主機的安全測量。 –