Re: stripping white space?
| From: | Bart Veldhuizen | Date: | Tue, 10 Jul 2001 06:31:24 +0000 |
| Subject: | Re: stripping white space? | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-57089@lists.php.net to get a copy of this message | ||
Hi Brian,
> * Persuade someone at Zend to modify PHP so that a filter function can
> be specified which all output text is passed through - would have the
> same restrictions as the "header" function
You can already achieve this by using the built-in output buffering
function. Read http://www.zend.com/manual/function.ob-start.php
for more
information and a simple example on this.
Why not go for HTTP compression though? The gain would be much larger than
just stripping out the whitespace/comments and such..
Have fun,
Bart