session_start() [function.session-start]

 

之前没有加  error_reporting (E_ALL ^ E_WARNING);一直弹的错误都是

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at D:\AppServ\www\liuyan\post.php:15) in D:\AppServ\www\liuyan\header.php on line 1  

 

后来 改成


 

<?php
error_reporting (E_ALL ^ E_WARNING);
session_start();
?>

 

就不弹出了。。

posted @ 2012-02-20 15:53  网络爱上点击  阅读(198)  评论(0编辑  收藏  举报