Re: [SMARTY] Smarty together with phpOpenTracker

From: Date: Fri, 01 Apr 2005 13:39:59 +0000
Subject: Re: [SMARTY] Smarty together with phpOpenTracker
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-12382@lists.php.net to get a copy of this message
On Fri, Apr 01, 2005 at 02:26:17PM +0100, Nick Clarke wrote: > On my current project i'm using Smarty together with > phpOpenTracker and every now and again I notice an odd > thing. > > I get this message: > > Cannot modify header information - headers already > sent by (output started at > Smarty_Template.class.php:23) (Error Code: 2) File: > (phpOpenTracker-1.5.0rc2/phpOpenTracker/LoggingEngine.php) > Line: (115) most likely your "Smarty_Template.class.php" (which isn't from the smarty distribution) has a newline too much at it's end (at line 23). This newline (or any stuff outside of <?php .. ?>) is printed as soon as Smarty_Template.class.php gets included. you can work against this with output buffering (http://php.net/outcontrol), but instead of fighting the symptoms you should cure the cause by making sure all necessary headers are sent before the first byte of output is produced. HTH messju > Which I guess means that they both are of course > sending header information! > > e.g: > Smarty No idea > phpOpenTrack for the return user cookie > > Does anyone have experience of using both of the > projects together? or a way of stopping this from > happening. > > Thanks in Advance, > Nick > > Send instant messages to your online friends > http://uk.messenger.yahoo.com

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