note 31317 deleted from function.ob-gzhandler by didou

From: Date: Mon, 11 Aug 2003 11:53:11 +0000
Subject: note 31317 deleted from function.ob-gzhandler by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-53869@lists.php.net to get a copy of this message
Note Submitter: someone@somewhere.com ---- 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

« previous php.notes (#53869) next »