note 48586 added to function.gzcompress

From: Date: Fri, 31 Dec 2004 11:33:21 +0000
Subject: note 48586 added to function.gzcompress
Groups: php.notes 
Request: Send a blank email to php-notes+get-82498@lists.php.net to get a copy of this message
Hello, I wonder how can I append to source of page information about commpression size. An example: $output - contains page to compression $size_before_compr=strlen($output); $compressed_out = gzencode($output); $size_after_compr=length($compressed_out); $str_to_add="<!-- before: {$size_before_compr}B, after: {$size_after_compr}B -->"; //and here is question, how can I add also information stored in $str_to_add to compressed page content (I mean add to $compressed_out) ??? header("Content-Encoding: gzip"); return $compressed_out; ---- Manual Page -- http://www.php.net/manual/en/function.gzcompress.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+48586 Delete -- http://master.php.net/manage/user-notes.php?action=delete+48586&report=yes Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+48586&report=yes&reason=bad+code Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+48586&report=yes&reason=spam Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+48586&report=yes&reason=useless+example Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+48586&report=yes&reason=contains+commercial+links Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+48586&report=yes&reason=useless+note Reject -- http://master.php.net/manage/user-notes.php?action=reject+48586&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#82498) next »