note 31327 deleted from function.ob-start by sniper

From: Date: Tue, 15 Jul 2003 22:57:09 +0000
Subject: note 31327 deleted from function.ob-start by sniper
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-52157@lists.php.net to get a copy of this message
Note Submitter: wastiee@candledreams.net ---- 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 :)

« previous php.notes (#52157) next »