【发布时间】:2015-11-24 10:31:11
【问题描述】:
如何在谷歌应用引擎上启用 php curl 、 phpinfo。 当我在 google app engine 上运行 phpinfo 时,我显示一个错误
Message: phpinfo() has been disabled for security reasons. It can be re-enabled by adding it to the google_app_engine.enable_functions ini variable in your applications php.ini
Filename: controllers/welcome.php
我也遇到了错误
Message: php_sapi_name() has been disabled for security reasons. It can be re-enabled by adding it to the google_app_engine.enable_functions ini variable in your applications php.ini
Filename: core/URI.php
我已经更改了 google_appengine 的 php.ini 文件。但也会出错
我的 php.ini 文件:
; Re-enable these soft disabled functions for minishell users.
google_app_engine.enable_functions = "phpinfo, php_uname, php_sapi_name"
google_app_engine.enable_functions = "php_sapi_name"
google_app_engine.enable_curl_lite = "1"
google_app_engine.enable_functions = "phpversion, phpinfo"
【问题讨论】:
标签: php google-app-engine curl