Chinaunix首页 | 论坛 | 博客
  • 博客访问: 325180
  • 博文数量: 53
  • 博客积分: 1037
  • 博客等级: 准尉
  • 技术积分: 1066
  • 用 户 组: 普通用户
  • 注册时间: 2012-05-13 14:09
文章分类

全部博文(53)

文章存档

2016年(1)

2015年(10)

2013年(2)

2012年(40)

分类: PHP

2015-03-15 15:14:18

Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /mnt/www/notes/include/test.php:1)

文件test.php 是用 utf-8 编码的, 如果文件开始有 BOM , 也就是不是无 BOM 格式的 UTF-8编码, 那么就会出现这个问题.

因此解决方法只要将该文件另存为无 BOM 格式的 UTF-8编码的文件即可.



References:

http://webofficer.blog.163.com/blog/static/4185810200911147533990/
阅读(1740) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~