note 56863 added to function.header

From: Date: Sat, 17 Sep 2005 15:33:38 +0000
Subject: note 56863 added to function.header
Groups: php.notes 
Request: Send a blank email to php-notes+get-95331@lists.php.net to get a copy of this message
Redirecting using location headers doesn't happen immediately - therefore if you use the following: <?php if ($somevariable == true){ header('Location: www.someplace.com/where-i-want-to-be.php'); } header('Location: www.someplace.com/where-i-will-end-up.php'); ?> You will still always end up at the second location, regardless of whether $somevariable is true or false. ---- Manual Page -- http://www.php.net/manual/en/function.header.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+56863 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+56863&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+56863&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+56863&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+56863&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+56863&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+56863&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+56863&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+56863&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#95331) next »