Forum Moderators: coopster
I've spent some time now looking for an answer to this and I'm at a dead end..
Basically, I'm trying to assign a web page's current sub-domain to a PHP variable.
Example:
[hello.website.com...]
I want 'hello' to be assigned to $subdomain so that throughout the page I can use $subdomain to generate data specific to that subdomain.
I'm not looking to map sub-domains to specific content or anything like that as that is already functioning but I just need to make the sub-domain into a variable that I can use throughout the page.
Any suggestions/ideas would be very much appreciated!
Thanks
Nic