note 54939 deleted from faq.using by mazzanet
| From: | mazzanet@php.net | Date: | Wed, 20 Jul 2005 10:37:26 +0000 |
| Subject: | note 54939 deleted from faq.using by mazzanet | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-92202@lists.php.net to get a copy of this message | ||
Note Submitter: senglathsamy at yahoo dot com
----
I was tried to use HEADER function to do redirect to other site, but it's doesn't work. it
always shown me like this message "Warning: Cannot modify header information - headers already
sent by (output started at c:\Apache\htdocs\test.php:1) in c:\Apache\htdocs\test.php on line
2". Event, I used a script code as shown below
<?php
header("Location: http://www.example.com/");
/* Redirect browser */
/* Make sure that code below does not get executed when we redirect. */
exit;
?>