Gzip Compression

From: Date: Tue, 04 Feb 2003 15:51:34 +0000
Subject: Gzip Compression
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-7504@lists.php.net to get a copy of this message
Hi, I'm trying to get my gzip class to work with smarty, but I'm experiencing some problems.. a) Gettings content wich is going to be compressed. Before I used $contents = ob_get_contents();, but this is not possible with smarty(?). And now I'm trying $contents = $GLOBALS['_SMARTY']->fetch('file:'.BASE_DIR.'/templates/index.tpl.htm'); Now this works, but only on one page. Although all pages use index.tpl.htm and a childfile wich is included in index.tpl.htm. b) Getting page processing time _after_ the gzip compression has been applied. I found this rather difficult because the content is stored before the gzip compression is applied. I.e. I have "page processed in 0.86 seconds", but this is compressed as static content in the template.. So how do you guys do this? -- --------------- Sincerely, Eskil Kvalnes eskil@uten.net

« previous php.smarty.general (#7504) next »