如何解決此問題,以便我的腳本能夠正常工作。CURLOPT_FOLLOWLOCATION錯誤?
收到此錯誤:
Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode or an open_basedir is set in /home/halogam1/public_html/xbox.check/xbox.class.php on line 137
然後,我跑到這個腳本調試:
<?php
echo ini_get('safe_mode');
var_dump(ini_get('open_basedir'));
?>
輸出:
1string(0) ""
所以我怎麼能禁用safe_mode設置? – AndrewFerrara
請參閱http://www.daniweb.com/web-development/php/threads/18424儘管禁用safe_mode並不是一個好主意。 – hafichuk
在「safe_mode = Off」的同一個目錄下創建一個php.ini文件爲我工作 – AndrewFerrara