摘要: 在使用 curl 时出现报错:CURLOPT_FOLLOWLOCATION cannot be activated when safe_mode is enabled or an open_basedir is set in ...safe_mode:PHP安全模式,当开启时一些PHP函数将被禁用open_basedir: 将用户访问文件的活动范围限制在指定的区域 如open_basedir=.:/tmp 或是具体 /var/tmp解决方法:if (ini_get('open_basedir') == '' && ini_get('saf 阅读全文
posted @ 2013-05-30 13:39 黑暗行者 阅读(3294) 评论(1) 推荐(0) 编辑