Page 1 of 1

Automatic sub domain creation

Posted: Fri Jan 01, 2010 11:22 am
by jebasam
Hi,

I am newbie to php. I am developing a site in php. I want to automate sub domain creation through php form. ie, my main site is - http://www.abc.com. Now i want to create subdomain like - http://www.alex.abc.com using php coding. How do i achieve this? Please advice.

Re: Automatic sub domain creation

Posted: Fri Jan 01, 2010 1:04 pm
by manohoo
Wouldn't it be better to create a directory rather than a subdomain?

From a design point of view I prefer http://www.abc.com/alex to http://www.alex.abc.com

Let me know if you disagree and why.