JAVA、PHP、前端、APP、网站开发 - 开发技术学习

文档标签: warning

Warning: Cannot modify header information - headers already sent by .

如果在执行php程序时看到这条警告:"Warning: Cannot modify header information - headers already sent by ...."Few notes based on the following user posts:有以下几种解决方法:1. Blank lines (空白行):Make sure no blank line after <?php ... ?> of the calling php scrīpt.检查有<?php ... ?> 后面没有空白行,特别是include或者require的文件。不少问题是这些空白行导致的。2. Use exit statement (用exit来解决):Use exit after header statement seems to help some people在header后加上exit();header ("Location: xxx");exit();3. PHP has t...

站点声明:部分内容源自互联网,为传播信息之用,如有侵权,请联系我们删除。

© Copyright 2011-2024 www.kfju.com. All Rights Reserved.
超级字帖 版权所有。蜀ICP备12031064号