RE: [PHP] cleaning up html output from php in apache
| From: | Jason Sheets | Date: | Sat, 10 Apr 2004 19:20:47 +0000 |
| Subject: | RE: [PHP] cleaning up html output from php in apache | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-183077@lists.php.net to get a copy of this message | ||
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:news.groups@web.de]
Sent: Saturday, April 10, 2004 1:04 AM
To: php-general@lists.php.net
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