logo       

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

php.smarty.general

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

messju@xxxxxxxxxxxxxxxxxx (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'.

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




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise