码迷,mamicode.com
首页 > 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:24:00      阅读:186      评论:0      收藏:0      [点我收藏+]

标签:www   跳转   image   ann   blog   ati   nbsp   top   分享   

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…

标签:www   跳转   image   ann   blog   ati   nbsp   top   分享   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!