PHP Redirect
header() is used to send a raw HTTP header.
Header (location) redirect must be processed before any output to the browser.
Example:
<?php
$text = '<?php header('Location: http://www.example.com'); ?>';
?>
$text = '<?php header('Location: http://www.example.com'); ?>';
?>