note 31327 added to function.ob-start

From: Date: Thu, 17 Apr 2003 15:08:40 +0000
Subject: note 31327 added to function.ob-start
Groups: php.notes 
Request: Send a blank email to php-notes+get-46739@lists.php.net to get a copy of this message
Some prob I experienced, which i haven't before (maybe our host switched to another php version or just changed the ini file); i was using ob_start() with a custom callback function which replaces title, etc, and then returns the result of ob_gzhandler() function, but it started not working after some time (there were problems with hosting, some programs are reinstalled i guess, maybe the OS itself). I found out that; ob_start() now fails with my custom function; but it works with ob_gzhandler(). what i did was, call just ob_start(); at the start of the php file, and at the end; $html = ob_lyricz_handler(ob_get_contents()); ob_end_clean(); echo $html; so calling my custom function myself. Try this if you start having problems with custom output handler functions :) -- http://www.php.net/manual/en/function.ob-start.php http://master.php.net/manage/user-notes.php?action=edit+31327 http://master.php.net/manage/user-notes.php?action=delete+31327 http://master.php.net/manage/user-notes.php?action=reject+31327

« previous php.notes (#46739) next »