http://blog.DoZarte.com


Come recuperare l’URL della pagina attuale


Share to Facebook Share to Twitter Stumble It Email This More...

Se vi serve sapere qual’è l’indirizzo completo (http://… eccetera) della pagina in cui risiede il vostro codice, con PHP è cosa facile:

echo "http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']

…oppure anche:

$url = 'http://' . $_SERVER["SERVER_NAME"] . $_SERVER["REQUEST_URI"];

Share to Facebook Share to Twitter Stumble It Email This More...

Se l'articolo era interessante, forse troverai approfondimenti nei seguenti link sponsorizzati...


Leave a Reply

XHTML: Tags concessi: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

You can add images to your comment by clicking here.