<?php
  
/* parse_url by ToR         */
?>
    <html><body bgcolor="#DEFFF3"><font size=-2>Parse Url<br>
    <form action="parse.php" method="GET">
    URL: <input type="text" size="60" name="url" value="http://php.s3.to:80/net/index.php?name=aaa&date=2011/8/29">
    <input type="submit" value="ρ[["><br></form></font><tt>
<?
if(isset($_GET['url'])):
$url htmlspecialchars($_GET['url']);
$par parse_url($url);
while(list(
$key,$val)=each($par)){
  echo 
"<b>$key</b> == $val<br>";
}
endif;
$srv array_map("htmlspecialchars"$_SERVER);
echo 
"PATH_INFO == ".$srv['PATH_INFO']."<br>";
echo 
"PHP_SELF  == ".$srv['PHP_SELF']."<br>";
echo 
"SCRIPT_NAME == ".$srv['SCRIPT_NAME']."<br>";
echo 
"REQUEST_URI == ".$srv['REQUEST_URI']."<br>";
echo 
"PATH_TRANSLATED == ".$srv['PATH_TRANSLATED']."<br>";
?>
</tt></body></html>