关于session避免错误中ob_start()方法的询问

#1 WCPSOFT

查看http://www.speedphp.com/thread-3736-1-1.html ,写着“可以在入口文件全局定义位置中,加入ob_start();来避免出错”。通过这个函数可以避免那些错误提示呢?除了Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at xxx.php:29) in xxx这种。

2012-12-08 00:04:17

#2 jake

主要是输出头错误和空字符错误,ob_start的意义是开始输出。

2012-12-08 10:15:38