Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when in sa
Posted 啊玉_jspphp
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when in sa相关的知识,希望对你有一定的参考价值。
php打印小票错误提示:Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode or an open_basedir is set…
解决办法:
curl_setopt($curl, CURLOPT_FOLLOWLOCATION, 1); // 使用自动跳转
将该语句中的1换成0就可以了,也就是 curl_setopt($curl, CURLOPT_FOLLOWLOCATION, 0);
我是这样改就可以了
以上是关于Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when in sa的主要内容,如果未能解决你的问题,请参考以下文章