note 24861 added to function.header
| From: | yc17 at NOSPAMlaposte dot net | Date: | Fri, 30 Aug 2002 15:22:34 +0000 |
| Subject: | note 24861 added to function.header | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-36039@lists.php.net to get a copy of this message | ||
Apparently, when you make a redirection with PHP using :
header(Location : $url);
// code after header
the code after header is executed.
To avoid this, you can simply add an exit; after your header(...)
--
http://www.php.net/manual/en/function.header.php
http://master.php.net/manage/user-notes.php?action=edit+24861
http://master.php.net/manage/user-notes.php?action=delete+24861
http://master.php.net/manage/user-notes.php?action=reject+24861