note 31317 added to function.ob-gzhandler

From: Date: Thu, 17 Apr 2003 09:45:46 +0000
Subject: note 31317 added to function.ob-gzhandler
Groups: php.notes 
Request: Send a blank email to php-notes+get-46725@lists.php.net to get a copy of this message
Do you know how to use function ob_start("ob_gzhandler") (to gzip compressed document) and also get call the function ob_start("my_func") to change end-behaviour of the code (and only then call function ob_gzhandler to compress the all changed document). Double calling ob_start() with argument - first time "my_function" and second - "ob_gzhandler" doesn't work. I need sth like this: function callback($buffer) { // replace all the apples with oranges return (ereg_replace("apples", "oranges", $buffer)); } ob_start("callback"); //and then compress all the document with "ob_gzhandler", but second-time ob_start("ob_gzhandler") doen't work. ob_start("ob_gzhandler"); THiA -- http://www.php.net/manual/en/function.ob-gzhandler.php http://master.php.net/manage/user-notes.php?action=edit+31317 http://master.php.net/manage/user-notes.php?action=delete+31317 http://master.php.net/manage/user-notes.php?action=reject+31317

« previous php.notes (#46725) next »