header
| From: | Jo�o C�ndido de Souza Neto | Date: | Fri, 24 Nov 2006 15:13:03 +0000 |
| Subject: | header | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-245119@lists.php.net to get a copy of this message | ||
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