Kirsten wrote: > 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> If you are compressing it, the extra spaces really don't matter. Try it for yourself. Get an example file and hand-optimize it to remove the whitespace and compress it. Compare that to the size of the compressed file without the whitespace removed. You will most likely find that the size difference after compression is neglible. > 2) Is it true that ob_start("ob_gzhandler") can cause problems on IE 5.5+? It should be fine. -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php