I need to create dynamic subdomain in php. For example : In a http://www.website.com , when a user get register , then he need to have http://user.website.com ( virtual Dynamic Subdomain ). I need to code in php. I am ready to pay for this.
hi, you can do it using htaccess. In fact I am also looking for similar functionality implementation for my upcoming website about url shortening .. I will try it today and let you know about it in a day or two if you can wait
You will need access to your NS records in order to do this, as you will need to add a CNAME record with * pointing to your domain, just for you to be aware. The NS is not the same as simply changing your NS (ie NS.yourdomain.com)
if you have cpanel on your hosting, there are scripts that are doing subdomains, there are php classes, connects to your cpanel and makes subdomain. but why do you want user.domain.com and not domain.com/user ? looks better... -jiik
Hi, 1. There should be only one web site on the server. DNS entry pointed to this Server. 2. for the web site, Add one blank header. 3. Due to this blank header, all requests will hit to this website. 4. In programming we need to handle for each domain. Cheers,