开发者

Header already.... when header() is used...PHP

When I use header( 'Location: http://www.yoursite.c开发者_如何学运维om/new_page.html' ) ; which is a PHP redirection of page, it says header already passed at line....

The landing page as <? include('header.php'); ?>

How can I over come this error message?

Appreciate assistance.

Thanks Jean


Note that headers should be sent before anything else. Make sure that there is no code/html or even space/indentation before the header function and there is nothing before the first opening php tag <?php as well as ending tag ?> in your page.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜