viernes, 21 de noviembre de 2008

How to get the actual url using php

This is a piece of code I find quite useful. I hope you too: Greetings

$url_base = $_SERVER['SERVER_NAME'];

$url_end= $_SERVER['REQUEST_URI'];

$url = "http://".$url_base.$url_end;

Greetings

No hay comentarios: