note 49589 added to function.ob-start
| From: | FB at osu1 dot php dot net | Date: | Wed, 02 Feb 2005 14:59:43 +0000 |
| Subject: | note 49589 added to function.ob-start | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-84366@lists.php.net to get a copy of this message | ||
I've noticed a bug with MSIE for non cached contents if your page is less than 4096 octets :
you have to refresh the page each time to view its content !
Here is the solution to prevent this stupid behaviour of MSIE : just insert this code at the top of
your scripts :
function ob_callback($buffer)
{
return $buffer . str_repeat(' ', max(0, 4097 - strlen($buffer)));
}
ob_start('ob_callback');
----
Manual Page -- http://www.php.net/manual/en/function.ob-start.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+49589
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+49589&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+49589&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+49589&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+49589&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+49589&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+49589&report=yes
Search -- http://master.php.net/manage/user-notes.php