Getting Subdomain Name With PHP?

Posted on 16th Feb 2014 by admin

I want to grab the subdomain name with PHP so I can generate database queries.

for example my subdomain is san-jose.mydomain.com

How would I go about grabbing the subdoman name with PHP? Thanks!

Other forums