Re: What would stop header("Location...) from working?
| From: | Mark Cilissen | Date: | Wed, 28 Oct 2009 07:42:42 +0000 |
| Subject: | Re: What would stop header("Location...) from working? | ||
| References: | 1 | Groups: | php.general php.general |
| Request: | Send a blank email to php-general+get-299417@lists.php.net to get a copy of this message | ||
tedd schreef:
Hi gang: I just had a script stop following this statement: header("Location:users.php"); It *was* working, but now instead of running "users.php", it defaults to the parent script. When I place exit() after it, such as: header("Location:users.php"); exit(); The script simply exits. It does not continue to users.php -- BUT -- it did. What would stop this statement from working? Thanks, teddIf ANYTHING is output before header(), it stops working. Did you turn off error reporting? You might want to double-check, because it returns an error if anything is output. -- Kind regards, Mark Cilissen / Pixlism