如何在谷歌应用引擎上启用php curl,phpinfo

时间:2015-11-24 10:31:11

标签: php google-app-engine curl

如何在谷歌应用引擎上启用php curl,phpinfo。 当我在谷歌应用引擎上运行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"

1 个答案:

答案 0 :(得分:4)

您应该将所有google_app_engine.enable_functions指令合并为一行,即

google_app_engine.enable_functions = "phpinfo, php_uname, php_sapi_name, phpversion"