首页 > Web开发 > 详细

Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode or an open_basedir is set…

时间:2016-11-14 17:21:39      阅读:663      评论:0      收藏:0      [点我收藏+]

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 safe_mode or an open_basedir is set…

原文:http://www.cnblogs.com/guojinyu/p/6062222.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!