Re: redirect to a static page

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

 



Vit wrote:

> Hi all,
> 
> I'm trying to understand how to redirect to a static page....
> 
> here you are the code (it seem to be a stupid code, but I'm just
> debugging.....
> 
> <?php
> 
> 	header( "Location: http://www.google.com"; );
> ?>
> 
> instead of being redirect to www.google,com, I get the following error:
> 
> Warning: Cannot modify header information - headers already sent by
> 
> what can be??? how can I solve it??

The header needs to be the very first output your script sends out. No 
other output may come before it. This is clearly discussed in the manual 
at <http://www.php.net/header>.

-- 
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