Rosen,
You have to make sure that nothing is output before the header function.
Make sure that you neither employ an echo or print before, and have
nothing outside of th ephp code (the part enwrapped in <?php or <? and
?>), not even whitespace.
You critical spot seems to be line 2 in go.php
Cheers,
Ben
Rosen wrote:
>
> Hi,
> I have php script and I want to redirect user to different pages.
> I tryed with
> header("Location: main.php");
>
> but i receive error:
>
> Warning: Cannot add header information - headers already sent by (output
> started at F:\Inetpub\wwwroot\pernik\go.php:2) in
> F:\Inetpub\wwwroot\pernik\go.php on line 6
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]