Re: header

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, November 24, 2006 9:13 am, João Cândido de Souza Neto wrote:
> 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

Nitpick:
header("Location: ...");
is supposed to have an "absolute URI", i.e., a full URL with http://
and everything.

> 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

To anybody else stuck on a similar problem, the error message requires
a bit of re-reading to pull it all out into sense, but literally
EVERYTHING you need to work out what went wrong is in this error
message...

-- 
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux