credo sia più corretto un


$link = "http://".$_SERVER["HTTP_HOST"].$_SERVER["REQUEST_URI"];