开发者

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

开发者 https://www.devze.com 2023-01-09 21:49 出处:网络
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....

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

精彩评论

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

关注公众号