note 65595 deleted from function.die by didou

From: Date: Sun, 25 Feb 2007 23:54:36 +0000
Subject: note 65595 deleted from function.die by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-123861@lists.php.net to get a copy of this message
Note Submitter: massimo dot piano at hotmail dot it ---- You may use die() or the equivalent exit() after a redirection ( via the header statement ) <code> header("location : http://www.differentpage.com"); die(); <code> this may seem strange but you have to rememeber that header affects the client not the server script ( in fact it will continue to be executed if you dont stop it) of course you can let the script continue but someone forget this behaviour and get "strange errors"

« previous php.notes (#123861) next »