Parse Url
if(isset($_GET['url'])):
$url = htmlspecialchars($_GET['url']);
$par = parse_url($url);
while(list($key,$val)=each($par)){
echo "$key == $val
";
}
endif;
$srv = array_map("htmlspecialchars", $_SERVER);
echo "PATH_INFO == ".$srv['PATH_INFO']."
";
echo "PHP_SELF == ".$srv['PHP_SELF']."
";
echo "SCRIPT_NAME == ".$srv['SCRIPT_NAME']."
";
echo "REQUEST_URI == ".$srv['REQUEST_URI']."
";
echo "PATH_TRANSLATED == ".$srv['PATH_TRANSLATED']."
";
?>