chanchelkumar Posted January 4, 2008 Share Posted January 4, 2008 Hi Friends, I am really confused how to create subdomain dynamically. I am explaining my problem with the help of example. Problem: Whenever users registers to my websit they must get there own website . Ex. if I am registering on www.abc.com and my companies name is xyz, my website will have the name as www.xyz.abc.com. Please suggest me a good solution for this. thanks in advance ??? Quote Link to comment https://forums.phpfreaks.com/topic/84425-create-subdomain/ Share on other sites More sharing options...
rajivgonsalves Posted January 4, 2008 Share Posted January 4, 2008 well you have to set it up in apache and not in php... google for wildcards and subdomains apache Quote Link to comment https://forums.phpfreaks.com/topic/84425-create-subdomain/#findComment-430054 Share on other sites More sharing options...
chanchelkumar Posted January 4, 2008 Author Share Posted January 4, 2008 Hi Rajeev, I searched alot in google. Please suggest me a link Quote Link to comment https://forums.phpfreaks.com/topic/84425-create-subdomain/#findComment-430101 Share on other sites More sharing options...
rajivgonsalves Posted January 4, 2008 Share Posted January 4, 2008 Well come to think of it you can do it in php by using the $_SERVER['HTTP_HOST'] variable parsing it removing the sub domain name and then process your script accordingly Quote Link to comment https://forums.phpfreaks.com/topic/84425-create-subdomain/#findComment-430122 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.