在windows下编程,当使用session_start()方法的时候,有时会报 session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /var/www/inpublisher/php1.php:1)这样的错误.
解决办法:
修改php.ini中的session.auto_start = 0 为 session.auto_start = 1
然后重新启动apache...