<?php $s = $_GET; $a = "Location: http://www."; $as = $a.$s; header("$as"); exit; ?>
<? $s = $_GET; $a = "location: http://www."; $as = $a.$s; // Включаем буферизацию ob_start(); echo "Вывод в браузер"; header($as); // Вывод в браузер и сброс буфера ob_end_flush(); ?>
<?php $s = $_GET; echo ' <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=windows-1251"> <title>Новая страница 1</title> <script type="text/javascript"> location.replace("http://www.'; echo $s; echo '"); </script> </head> <body> </body> </html>'; ?>
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=windows-1251"> <title>Новая страница 1</title> <script type="text/javascript"> location.replace("http://www.ya.ru"); </script> </head> <body> </body> </html>