note 47788 deleted from function.header by bjori

From: Date: Mon, 27 Mar 2006 09:54:35 +0000
Subject: note 47788 deleted from function.header by bjori
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-106737@lists.php.net to get a copy of this message
Note Submitter: php at bucksvsbytes dot com ---- After running into trouble executing <?php header("Location: ..."); ?> statements, I found the following advice in a posting, "You should include an exit statement after a call to header() if you want the script to stop. If you leave out the exit statement, several additional statements may be executed before the headers are sent and this can lead to unpredictable behavior." Adopting this solved my problems, so I emphasize it as an important practice.

« previous php.notes (#106737) next »