note 47868 added to function.header
| From: | Eric at osu1 dot php dot net | Date: | Fri, 03 Dec 2004 14:29:49 +0000 |
| Subject: | note 47868 added to function.header | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-81312@lists.php.net to get a copy of this message | ||
I wasted an early-morning hour on this one. Although there is a cautionary note about this I think
it bears emphasizing here.
I'm using an include to set some variables before I process the input from a form, then issue a
'Location' redirect.
The include file had a blank line after the final "?>" Note - It was not output (ie:
NOT printed or echoed) it was simply an empty line after I closed the PHP clause.
This empty line caused the redirect to fail. Removing this empty line fixed the problem.
Just FYI. Hope it helps.
----
Manual Page -- http://www.php.net/manual/en/function.header.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+47868
Delete -- http://master.php.net/manage/user-notes.php?action=delete+47868&report=yes
Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+47868&report=yes&reason=bad+code
Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+47868&report=yes&reason=spam
Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+47868&report=yes&reason=useless+example
Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+47868&report=yes&reason=contains+commercial+links
Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+47868&report=yes&reason=useless+note
Reject -- http://master.php.net/manage/user-notes.php?action=reject+47868&report=yes
Search -- http://master.php.net/manage/user-notes.php