Click to See Complete Forum and Search --> : function for retrieving url


neil
09-10-2003, 10:24 AM
i was wondering what the php function is for retireving the current url?

any help would be greatly appreciated

neil
09-10-2003, 11:00 AM
$_SERVER["HTTP_REFERER"];


sorted now anyway :)

pyro
09-10-2003, 11:13 AM
That won't retrieve the current URL, but rather the URL that you were on before the current page. To get the current one, use $_SERVER['PHP_SELF']