Re: [SMARTY] header.

[email protected] (Cameron Perry) Fri, 24 Nov 2006 08:13:32 -0800
Newsgroups php.smarty.general
Message-ID <[email protected]>
There must be something else in one of your includes. You'll  
typically get this error you've already sent output (i.e. text) to  
the browser and then try calling one of the header() functions. If  
you simply want to redirect you could throw a meta refresh tag in  
your header...

~Cameron

On Nov 24, 2006, at 7:07 AM, João Cândido de Souza Neto wrote:

> In my index.php i have got only one php-tag, nothing besides this.
>
> "messju mohr" <[email protected]> escreveu na mensagem
> news:[email protected]...
>> On Fri, Nov 24, 2006 at 11:33:26AM -0200, João Cândido de Souza Neto
>> wrote:
>>> I am working with smarty and in my system i have got a lot of  
>>> includes.
>>>
>>> In one of these includes, somtimes i must do header("Location:
>>> some_page.php") but when i try to do it i get the follow error:
>>>
>>> Warning: Cannot modify header information - headers already sent by
>>> (output
>>> started at
>>> /usr/local/apache2/htdocs/www2.superbanco.com.br/html/index.php: 
>>> 1) in
>>> /usr/local/apache2/htdocs/www2.superbanco.com.br/html/modules/ 
>>> loja/identificacao.php
>>> on line 15
>>>
>>> My question is, can i avoid this error?
>>> If so, how?
>>
>> I guess, remove the BOM or whatever you have before the first opening
>> <?php-tag in your index.php.
>>
>> This question is more appropiate in php-general, BTW.
>>
>>> -- 
>>> João Cândido de Souza Neto
>>> Curitiba Online
>>> [email protected]
>>> (41) 3324-2294 (41) 9985-6894
>>> http://www.curitibaonline.com.br
>>>
>>> -- 
>>> Smarty General Mailing List (http://smarty.php.net/)
>>> To unsubscribe, visit: http://www.php.net/unsub.php
>
> -- 
> Smarty General Mailing List (http://smarty.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>