note 40861 added to function.ob-start

From: Date: Wed, 17 Mar 2004 12:20:05 +0000
Subject: note 40861 added to function.ob-start
Groups: php.notes 
Request: Send a blank email to php-notes+get-66955@lists.php.net to get a copy of this message
If ob_start does not seem to be working for you, note that with Apache 2 the flush() function causes PHP to send headers regardless of whether ob_start had been called before flush. ob_start(); echo 'test'; flush(); will cause Apache 2 to send whatever headers may be stacked up - which means you can't use a header(location:xxx) after the flush. To fix, remove the flush(). Spent several hours discovering this. Apache 1.x didn't work this way. ---- Manual Page -- http://www.php.net/manual/en/function.ob-start.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+40861 Delete -- http://master.php.net/manage/user-notes.php?action=delete+40861&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+40861&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#66955) next »