note 54937 added to faq.using
| From: | senglathsamy at yahoo dot com | Date: | Wed, 20 Jul 2005 10:04:38 +0000 |
| Subject: | note 54937 added to faq.using | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-92196@lists.php.net to get a copy of this message | ||
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;
?>
----
Manual Page -- http://www.php.net/manual/en/faq.using.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+54937
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+54937&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+54937&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+54937&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+54937&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+54937&report=yes&reason=non-english
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+54937&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+54937&report=yes
Search -- http://master.php.net/manage/user-notes.php