Curl_Setopt()出错

时间:2012-04-02 09:11:44

标签: php curl

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

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

1 个答案:

答案 0 :(得分:2)

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

可在此处找到解决方法:

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

相关问题