摘要:
在使用 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 阅读全文