You are here: Reducing size of htm output « PHP « IT news, forums, messages
Reducing size of htm output

Posted by Kirsten on 10/19/55 11:15

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация