Files
php_practice/exam63/ServerVariables.php

23 lines
337 B
PHP

<h1>My page</h1>
<?php
// include 'header.inc.php';
// $scrpit_name = $_SERVER['SCRIPT_NAME'];
// echo $scrpit_name . '<br>';
// $host_name = $_SERVER['HTTP_HOST'];
// echo $host_name;
$redirect = true;
$redirect_page = 'http://google.com';
if($redirect == true){
header('Location: '. $redirect_page);
}
?>