note 27208 added to function.header

From: Date: Wed, 27 Nov 2002 10:25:49 +0000
Subject: note 27208 added to function.header
Groups: php.notes 
Request: Send a blank email to php-notes+get-40026@lists.php.net to get a copy of this message
When I use the header("Location: anypage") function I'm expecting to redirect to another page immediately. In almost all the cases it works well, but in fewcases the code after this line is executed before redirect to the other page. I didn't find any reason for this. The solution I found is to put always the funtion exit() after the header. -- http://www.php.net/manual/en/function.header.php http://master.php.net/manage/user-notes.php?action=edit+27208 http://master.php.net/manage/user-notes.php?action=delete+27208 http://master.php.net/manage/user-notes.php?action=reject+27208

« previous php.notes (#40026) next »