Quote:
Originally Posted by chrishirst
we'll just do the same in asp (VbScript) then
replace() & split()
Code:
function referer_host()
dim url
dim url_parts
url = replace(request.servervariables("HTTP_REFERER"),"http://","")
url_parts = split(url,"/")
referer_host = url_parts(0)
end function
|
Yep, this really does work! Nice and clean. Thanks so much, Chris!
And thanks to you too, stOx. I will certainly document your suggestion for future reference, in case I ever start using PHP.
------
Alex
Last edited by Netherland; 12-18-2006 at 08:54 AM..
|