Hi,
Is there a simple way to find out the compete URL of a page... kind of like $_SERVER['PHP_SELF'], but returning the full URL - I want to differentiate between people who access a page from subdomain1.mydomain.com and subdomain2.mydomain.com
I'm sure this is probably quite simple... it's easy when you know how 🙂
thanks, norpel
You really should consider doing a print_r on $_SERVER. You might find other interesting things in there.
But anyway, for this I would check $_SERVER['HTTP_HOST'], which gives you the hostname used to access the page.
perfect... thanks