If you use Smarty you can use the {trim} m

Otherwise you can also use output buffering to grab the output buffer and
remove the sapces that you want.  

Note that you can't actually remove all whitespace as this sometimes has the
side effect of breaking cetain scripts, etc.

I'd rather implement gzip compression, you can do this through output
buffering (see http://www.php.net/ob_start) with PHP or through mod_gzip
(http://sourceforge.net/projects/mod-gzip/) for Apache.

Jason 

-----Original Message-----
From: Merlin [mailto:[EMAIL PROTECTED] 
Sent: Saturday, April 10, 2004 1:04 AM
To: [EMAIL PROTECTED]
Subject: [PHP] cleaning up html output from php in apache

Hi there,

I am searching for a way to strip the white spaces from each php generated
html site. Goal is to speed up the pages.

During my research for apache modules I found one for perl:
http://search.cpan.org/~geoff/Apache-Clean-0.05/Clean.pm

Is there something for php as well?

Thanx for any hint,

Merlin

--
PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:
http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to