Reading URL in php -


this question has answer here:

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

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -