开发者

Header cannor be sent [duplicate]

This question already has answers here: How to fix "Headers already sent" error in PHP (11 answers) Closed 9 years ago.

I got some error when I uploaded my site to server. The error is:

Cannot modify header information - headers already sent by (output started at.....)

My site w开发者_如何学Goorks fine on my localhost. Whats the possible error?


your server settings are probably just suppressing the error on your local machine, but it's almost impossible to tell without more information.

Things to watch out for include making sure there are no characters before the opening <?php, for example. This includes a UTF8-BOM. But really it's difficult to know without more info.


Remove any/all echo, print() or print_r() statements before the header() function is called.

Alternatively, comment them out //

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜