【问题标题】:How to enable php curl , phpinfo at google app engine如何在谷歌应用引擎上启用 php curl 、 phpinfo
【发布时间】: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


    【解决方案1】:

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

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

    【讨论】:

    • google_app_engine.enable_curl_lite = "1" 是否不足以仅启用 curl?
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2014-03-22
    • 1970-01-01
    • 1970-01-01
    • 2020-01-26
    • 1970-01-01
    • 2012-05-01
    • 2016-11-07
    相关资源
    最近更新 更多