|
Re: [SMARTY] Avoid unnecessary whitespace in compiled templates?: msg#00419php.smarty.general
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 -- 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: | [SMARTY] Thanks for your help everyone: 00419, Hoffman, Geoffrey |
|---|---|
| Next by Date: | [SMARTY] Any way to add values in a loop?: 00419, m guckeyson |
| Previous by Thread: | [SMARTY] Avoid unnecessary whitespace in compiled templates?i: 00419, Lars Noschinski |
| Next by Thread: | Re: [SMARTY] Avoid unnecessary whitespace in compiled templates?: 00419, Lars Noschinski |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |