Automatic sub domain creation

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
jebasam
Forum Newbie
Posts: 1
Joined: Fri Jan 01, 2010 11:16 am

Automatic sub domain creation

Post 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.
User avatar
manohoo
Forum Contributor
Posts: 201
Joined: Wed Dec 23, 2009 12:28 pm

Re: Automatic sub domain creation

Post 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.
Post Reply