in localhost address contain
$url="http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
i tried this code
header("location: step2.php?server=".base64_encode($_SERVER['HTTP_HOST']));
but i want to show only host name i.e means
$server=$_SERVER['HTTP_HOST'];
When i run $_SERVER['HTTP_HOST']; i get result "www.apple.com" only, no "http://" no "/downloads/dashboard/email_messaging/todo.html"
i want this result only in address bar
www.apple.com