Reducing size of htm output

From: Date: Fri, 06 May 2005 17:59:15 +0000
Subject: Reducing size of htm output
Groups: php.general 
Request: Send a blank email to php-general+get-214638@lists.php.net to get a copy of this message
I need to reduce the size of the HTM generated by a PHP script for faster transmission. I'm actually using ob_start("ob_gzhandler") but I also need some function to reduce the size of javascript blocks, deletion of unnecesary blanks, etc. For example, Code A: <head><script> function any(){ somecode; } </script> </head> <body> </body> can be converted to Code B: <head><script> function any(){ somecode; }</script></head><body></body> 1) Is there any function to do this (I'm using PHP 4.2) ? Or maybe some user has already done it? 2) Is it true that ob_start("ob_gzhandler") can cause problems on IE 5.5+? Thanks a lot, Kirsten

« previous php.general (#214638) next »