解决Zend Studio中Cannot modify header information - headers already sent by 的方法
2009-03-13 10:15
477 查看
找了一整天的资料,没有弄出个头绪,感觉都绝望了,想放弃ZendFrame的使用了,但是还是要感谢上帝的恩赐,今天终于解决啦。
或许是还没有从J2EE的struts spring hibernate中醒过来的原因,碰到问题总也觉得很容易解决,没想到小小的php参数配置拦了我一整天的时间。
先说解决方法:
1、修改php.ini的参数配置项
output_buffering off 修改为
output_buffering on
仅此一项,经典的Albums就正常运行了。这个例子还真是生动,一下就使我进入了状态。
帖子中有其他的解决方法,不过实在不能理解,但也列出来给大家做个参考。
Cannot modify header information - headers already sent by 错误解决办法
1.php设置文件的状态为on //羊博士注释:哪个参数要设置为on啊,莫不是说我上面的那个参数?
2.文件开头加ob_start();//羊博士注释:这个东东是做什么用的?为什么要他,要放在Controllers下还是Views下的.phtml文件中?
3.header后加exit(); //羊博士注释:又晕了
关于ZendFrame在 ZendStudio6中的使用碰到的问题,我会再未来的博客中意义记载,希望大家相互讨论。
或许是还没有从J2EE的struts spring hibernate中醒过来的原因,碰到问题总也觉得很容易解决,没想到小小的php参数配置拦了我一整天的时间。
先说解决方法:
1、修改php.ini的参数配置项
output_buffering off 修改为
output_buffering on
仅此一项,经典的Albums就正常运行了。这个例子还真是生动,一下就使我进入了状态。
帖子中有其他的解决方法,不过实在不能理解,但也列出来给大家做个参考。
Cannot modify header information - headers already sent by 错误解决办法
1.php设置文件的状态为on //羊博士注释:哪个参数要设置为on啊,莫不是说我上面的那个参数?
2.文件开头加ob_start();//羊博士注释:这个东东是做什么用的?为什么要他,要放在Controllers下还是Views下的.phtml文件中?
3.header后加exit(); //羊博士注释:又晕了
关于ZendFrame在 ZendStudio6中的使用碰到的问题,我会再未来的博客中意义记载,希望大家相互讨论。
相关文章推荐
- PHP提示Cannot modify header information - headers already sent by解决方法
- 解决Warning: Cannot modify header information - headers already sent by的方法 转
- PHP错误Warning: Cannot modify header information - headers already sent by解决方法
- php Cannot modify header information - headers already sent by set 解决方法
- 帝国cms Warning: Cannot modify header information - headers already sent by...错误【解决方法】
- 解决Warning: Cannot modify header information - headers already sent by的方法
- PHP错误Warning: Cannot modify header information - headers already sent by解决方法
- setcookie中Cannot modify header information-headers already sent by错误的解决方法详解
- 解决Warning: Cannot modify header information - headers already sent by的方法
- PHP错误Warning: Cannot modify header information - headers already sent by解决方法
- 错误信息:Warning Cannot modify header information - headers already sent by 的解决方法fi
- wordpress在登录后台出现“Warning: Cannot modify header information - headers already sent by”的解决方法
- 解决Warning: Cannot modify header information - headers already sent by的方法
- Cannot modify header information - headers already sent by解决方法
- PHP提示Cannot modify header information - headers already sent by解决方法
- 当用header方法输出内容时出现“Cannot modify header information - headers already sent by”的解决方法
- wdcp 解决Cannot modify header information - headers already sent by 警告的解决方法
- 当用header方法输出内容时出现“Cannot modify header information - headers already sent by”的解决方法
- PHP错误Warning: Cannot modify header information - headers already sent by解决方法
- PHPk空行问题:解决Warning: Cannot modify header information - headers already sent by...