我的PHP中SESSION设置在NTFS格式的磁盘中,怎么样开PHP.ini的读权限

来源:百度知道 编辑:UC知道 时间:2024/04/30 11:47:36
可是我写的PHP程序在网页中有这个警告:Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at D:\www\login_face.php:9) in D:\www\login_face.php on line 10

默认就有啊

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at D:\www\login_face.php:9) in D:\www\login_face.php on line 10

把你的session_start()放到页面的第一行

出现这个错误,就说明你在session_start前有了输出,如果你是utf8格式的文件,就说明文件头给加上了bom标记