note 27208 rejected from function.header by tix
| From: | tix@php.net | Date: | Wed, 27 Nov 2002 15:02:22 +0000 |
| Subject: | note 27208 rejected from function.header by tix | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-40035@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.