Cannot modify header information – headers already sent by出错的原因

php程序的头部加了header(“cache-control:no-cache,must-revalidate”);
之后页面就出现上面的错误。原因可能是php.ini里面的配置出了问题,在C:\windows\php.ini文件
output_buffering默认为off的,把它设为on就OK了。

关于笃志情缘

人尽其责,物尽其用,不成功,也无憾,毕竟奋斗过。走自己的路吧! 笃志建站:虚拟主机、域名注册、云主机、成品网站、企业邮局、CDN加速 http://www.duzhi.net QQ:3081689173
此条目发表在服务器相关分类目录,贴了, , , 标签。将固定链接加入收藏夹。

Cannot modify header information – headers already sent by出错的原因》有11条回应

  1. Not worth getting miserable about – humans destroy, that’s all there is to it.

  2. Jahongir说:

    Apaprently this is what the esteemed Willis was talkin’ ’bout.

  3. Anabela说:

    The forum is a brighter place thkans to your posts. Thanks!

  4. Ronaldo说:

    That insight’s percfet for what I need. Thanks!

  5. Dweep说:

    That’s a genuinely ipmresisve answer.

  6. Svetlana说:

    Is that really all there is to it baecuse that’d be flabbergasting.

  7. Antoine说:

    This is both street smart and inetlligent.

  8. Austin说:

    Your ansewr was just what I needed. It’s made my day!

  9. Yesenia说:

    That insight would have saved us a lot of efroft early on.

  10. Miguel说:

    I’m impressed by your writing. Are you a professional or just very knwoledgebale?

  11. Florian说:

    Thanks for straitng the ball rolling with this insight.

评论已关闭。