sysop073
11-26-2003, 10:25 AM
Does anybody know how to setup subdomains (so hi.mysite.com can go to mysite.com/hi or wherever else i want) through php? if not that, at least through IIS?
|
Click to See Complete Forum and Search --> : subdomains through php sysop073 11-26-2003, 10:25 AM Does anybody know how to setup subdomains (so hi.mysite.com can go to mysite.com/hi or wherever else i want) through php? if not that, at least through IIS? pyro 11-26-2003, 01:23 PM I think this will have to be done on the server, but I don't know IIS at all... diamonds 11-26-2003, 02:04 PM if you are thinking of what i am thinking of, try taking advantage of the $_SERVER['HTTP_HOST'] variable, it shows the domian and, I think, the subdomain. list($subdomain,$domain,$extention) = explode('.',$_SERVER['HTTP_HOST']); //$subdomain is somthing like 'pear' //$domain is somthing like 'php' //$extention is somthing like 'net' webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |