Re: [SMARTY] Avoid unnecessary whitespace in compiled templates?

From: Date: Wed, 29 Jan 2003 15:43:46 +0000
Subject: Re: [SMARTY] Avoid unnecessary whitespace in compiled templates?
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-7395@lists.php.net to get a copy of this message
On Wed, Jan 29, 2003 at 04:24:16PM +0100, Lars Noschinski wrote: > Hello! > > I've some templates which call a plugins which does a > header()-call. But the compiled template contains whitespace which > prevents sending the header. How can I avoid this? you can use output-buffering for that: http://www.php.net/manual/en/ref.outcontrol.php > (I should add that it works on my local box, i think due to the APC, > as even an explicit 'echo' before an header() does not prevent the > headers to be send.) maybe you have output-buffering already enabled on your local box. php.ini-dist has output-buffering disabled, but php.ini-recommended has an output-buffer of 4kb enabled in recent php-distributions. HTH messju

« previous php.smarty.general (#7395) next »