function full_url()
{
$s = empty($_SERVER["HTTPS"]) ? '' : ($_SERVER["HTTPS"] == "on") ? "s" : "";
$protocol = substr(strtolower($_SERVER["SERVER_PROTOCOL"]), 0, strpos(strtolower($_SERVER["SERVER_PROTOCOL"]), "/")) . $s;
$port = ($_SERVER["SERVER_PORT"] == "80") ? "" : (":".$_SERVER["SERVER_PORT"]);
return $protocol . "://" . $_SERVER['SERVER_NAME'] . $port . $_SERVER['REQUEST_URI'];
}
php fonctions
http://snipplr.com/view/2734/get-full-url/
<iframe width="100%" height="308" src="http://snippetvamp.warriordudimanche.net/snippetvamp.php?embed=520b61f7a0ed0" type="text/html"></iframe>
Texte seul - Permalink - Snippet public posté le 14/08/2013