Re: header

From: Date: Fri, 24 Nov 2006 18:41:44 +0000
Subject: Re: header
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-245124@lists.php.net to get a copy of this message
I found the trouble... My index.php file had been corrupted. I deleted and recreated it and works fine. Thanks a lot for your tips. ""João Cândido de Souza Neto"" <joao@curitibaonline.com.br> escreveu na mensagem news:E1.F0.05684.9AC07654@pb1.pair.com... > In my index.php file of my system i have got just one php tag in which it > starts a smarty object, make a lot of includes of templates and use > $smarty->display("index.tpl") to show the result. > > Until i know, smarty do not send any data to browser before display > method, but, in some cases i must do header(location: sompage.php") and it > gives 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 > > Anyone know why is it happen? If so, how can i avoid it? > > > -- > João Cândido de Souza Neto > Curitiba Online > joao@curitibaonline.com.br > (41) 3324-2294 (41) 9985-6894 > http://www.curitibaonline.com.br

« previous php.general (#245124) next »