【问题标题】:Error with Curl_Setopt()Curl_Setopt() 出错
【发布时间】:2012-04-02 09:11:43
【问题描述】:

警告:curl_setopt() [function.curl-setopt]:启用安全模式或在第 161 行设置 open_basedir 时无法激活 CURLOPT_FOLLOWLOCATION -- 指向 curl_setopt($curl_connection, CURLOPT_FOLLOWLOCATION, 1);

在本地开发上它工作得很好,但在 Web 服务器上它给出了这个错误。我不知道 setopt 有什么问题?

【问题讨论】:

    标签: php curl


    【解决方案1】:

    您的网络主机可能启用了 PHP 安全模式,这限制了您可以运行的功能。

    可以在此处找到解决方法:

    http://www.edmondscommerce.co.uk/curl/php-curl-curlopt_followlocation-and-open_basedir-or-safe-mode/

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2013-02-28
      • 2016-05-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多