SnippetVamp

Parce que yen a marre de chercher ses bouts de code partout...



TODO 1 ajax 3 astuce 68 auto_ 2 bash 1 bootstrap 14 conversion 2 crossbrowser 3 css 50 debug 10 dothtaccess 1 effets 1 erreurs 1 evenements 2 fallback 1 fichiers 27 filter 1 fonctions 73 form 1 graphisme 11 html 39 javascript 39 jquery 26 lib 2 mail 1 markdown 2 mobile 2 parser 13 php 91 pluXML 4 python 10 responsive 8 securite 17 social 1 texte 16 vanilla 4

.

get full url of the current page

get full url of the current page

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

Flux RSS de cette page


SnippetVamp 1.83 par Bronco - Page générée en 0.006 s