Reading URL in php -
this question has answer here:
- get full url in php 25 answers
i want check request come url --- www.mysite.com or bussiness.mysite.com
.how can check it,as $_server['http_host'] gives whole url . .
the thing want subdomain of url. use this
$subdomain = array_shift(explode(".",$_server['http_host']));
Comments
Post a Comment