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

From: Date: Thu, 30 Jan 2003 23:20:19 +0000
Subject: Re: [SMARTY] Avoid unnecessary whitespace in compiled templates?
References: 1 2  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-7431@lists.php.net to get a copy of this message
messju@lammfellpuschen.de (M Mohr) writes: > On Wed, Jan 29, 2003 at 04:24:16PM +0100, Lars Noschinski wrote: >> 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 Oh, right. *sigh* Activate brain before posting ... >> (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. In php4.ini it have 'output_buffering = off'.

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