note 54008 added to function.header
| From: | lawrencepeter at hotmail dot com | Date: | Mon, 20 Jun 2005 21:58:42 +0000 |
| Subject: | note 54008 added to function.header | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-90711@lists.php.net to get a copy of this message | ||
my god, I read every fix on here for the header problem and tried them all.. none worked.. here is
how you get around the
"Warning: Cannot add header information - headers already sent by" problem
put this at the start of the script
<?php
ob_start();
and then this right before the header..
ob_end_clean();
this will buffer the header until you clean it and use the header..
----
Manual Page -- http://www.php.net/manual/en/function.header.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+54008
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+54008&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+54008&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+54008&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+54008&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+54008&report=yes&reason=non-english
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+54008&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+54008&report=yes
Search -- http://master.php.net/manage/user-notes.php