【发布时间】:2013-06-26 18:27:52
【问题描述】:
我正在尝试将 PHP 应用程序迁移到 Google App Engine 基础架构,并且我有一段类似的代码可以处理会话:
<html>
<head>
<link type="text/css" rel="stylesheet" href="/stylesheets/main.css" />
</head>
<body>
<?php
session_start();
?>
</body>
</html>
使用 GAE SDK 执行它时,我收到以下错误,并且会话不跟踪我之前设置的记录:
警告:file_get_contents():php_network_getaddresses:getaddrinfo 失败:不知道这样的主机。在 C:\Users\user\Downloads\google_appengine_1.8.1\google_appengine\php\sdk\google\appengine\runtime\RemoteApiProxy.php 第 92 行 警告:file_get_contents(http://localhost:63143):无法打开流:php_network_getaddresses:getaddrinfo 失败:不知道这样的主机。在 C:\Users\user\Downloads\google_appengine_1.8.1\google_appengine\php\sdk\google\appengine\runtime\RemoteApiProxy.php 第 92 行 注意:未定义的偏移量:0 在 C:\Users\user\Downloads\google_appengine_1.8.1\google_appengine\php\sdk\google\appengine\runtime\Memcache.php 行 564我在php.ini 文件中设置了以下值:
session.save_handler = user
session.save_path = Memcache
有人知道我是否需要设置一些缺失的配置才能使用会话吗?
编辑:
我从项目文件夹中删除了php.ini文件,但仍然出现一些错误,上次没有出现2个不同的警告:
我在 Windows 7 Enterprise x64、php-5.4.13-Win32-VC9-x86 和 google_appengine_1.8.1 上运行。
【问题讨论】:
-
错误是它无法找到或打开
localhost:63143- 可能是本地主机的安全措施..
标签: php google-app-engine session