Warning: Cannot modify header information - headers already sent in Unknown on line 0
Posted haokan
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Warning: Cannot modify header information - headers already sent in Unknown on line 0相关的知识,希望对你有一定的参考价值。
运行php项目时,一直弹出这个提示
Deprecated: Automatically populating $HTTP_RAW_POST_DATA is deprecated and will be removed in a future version. To avoid this warning set ‘always_populate_raw_post_data‘ to ‘-1‘ in php.ini and use the php://input stream instead. in Unknown on line 0
Warning: Cannot modify header information - headers already sent in Unknown on line 0
解决方法:
php.ini文件下:开启always_populate_raw_post_data = -1 之后保存重启即可
原因:开启后就可以用 $HTTP_RAW_POST_DATA 接收data,不过通常我们使用 php://input
以上是关于Warning: Cannot modify header information - headers already sent in Unknown on line 0的主要内容,如果未能解决你的问题,请参考以下文章
解决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 in Unknown on line 0
php5.6,Ajax报错,Warning: Cannot modify header information - headers already sent in Unknown on line 0(
Cannot modify header information - headers already sent by (output started at /data/home/
ORA-12838: cannot read/modify an object after modifying it in parallel