note 65595 added to function.die

From: Date: Thu, 04 May 2006 07:37:56 +0000
Subject: note 65595 added to function.die
Groups: php.notes 
Request: Send a blank email to php-notes+get-110505@lists.php.net to get a copy of this message
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" ---- Server IP: 213.92.11.19 Probable Submitter: 82.52.131.5 ---- X-Spam-Status: No, hits=3.3 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER, HTML_MESSAGE autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/function.die.php Edit -- http://master.php.net/note/edit/65595 Del: integrated -- http://master.php.net/note/delete/65595/integrated Del: useless -- http://master.php.net/note/delete/65595/useless Del: bad code -- http://master.php.net/note/delete/65595/bad+code Del: spam -- http://master.php.net/note/delete/65595/spam Del: non-english -- http://master.php.net/note/delete/65595/non-english Del: in docs -- http://master.php.net/note/delete/65595/in+docs Del: other reasons-- http://master.php.net/note/delete/65595 Reject -- http://master.php.net/note/reject/65595 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#110505) next »