<?
$url="http://".$_SERVER["HTTP_HOST"].dirname($_SERVER['PHP_SELF']);
echo $url;
?>