|
Re: [SMARTY] Avoid unnecessary whitespace in compiled templates?: msg#00455php.smarty.general
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> |
|---|---|---|
| Previous by Date: | Re: [SMARTY] rebuild_cache() - just a thought: 00455, Paul Lockaby |
|---|---|
| Next by Date: | [SMARTY] Project: 00455, Hinrich Donner |
| Previous by Thread: | Re: [SMARTY] Avoid unnecessary whitespace in compiled templates?i: 00455, M Mohr |
| Next by Thread: | [SMARTY] Re. : [SMARTY] Avoid unnecessary whitespace in compiled templates?: 00455, philippe . morange |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |