You are here: Re: newbie: need help with "headers already sent" error « PHP Language « IT news, forums, messages
Re: newbie: need help with "headers already sent" error

Posted by Hendri Kurniawan on 01/11/07 22:07

Jeff wrote:
>
> ************* complete index.php *********************
> <?php
> session_start();
> if ($_GET["mode"] == "logout") {
> header("Location: index.php");
> }
> ?>
>
>

Simply add exit() after your header statement to:

<?php
session_start();
if ($_GET["mode"] == "logout") {
header("Location: index.php");
exit();
}
?>

Hendri Kurniawan

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация