954,591 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

create subdomain in server dynamically using php

Hi all,

I would like to provide subdomains for my users while they are register into my site. For example, if a user is registering into my site then he selects xxx as his username and once he completed his registeration process successfully. A URL www.xxx.mydomain.com will be provided to that user for viewing his site . How can I create such subdomains dynamically in server using php..

Can anyone have idea for this....

Thanks in advance...

mahe4us
Junior Poster in Training
55 posts since Sep 2006
Reputation Points: 10
Solved Threads: 0
 

Hi,
The link below is to a php script that will automatically create subdomains. However, there are certain restrictions in place, basically server settings.

http://www.addedworth.com/php/index.php?t=PHP_SUBDOMAINS

That script was not written by me, but I've used it before and it works.
Cheers,
Spin

SpinCode
Newbie Poster
1 post since Jan 2007
Reputation Points: 10
Solved Threads: 0
 

The link no longer works. Can u please post the script

himanjim
Junior Poster in Training
67 posts since Jul 2006
Reputation Points: 14
Solved Threads: 1
 

ya link not working

nikesh.yadav
Posting Whiz in Training
219 posts since Feb 2008
Reputation Points: 15
Solved Threads: 21
 

Here is the one i have written..
http://www.zubrag.com/downloads/cpanel_subdomains.zip

Thanks
Aaditya Kumar
[url snipped]

ihave58
Newbie Poster
1 post since Aug 2007
Reputation Points: 10
Solved Threads: 0
 

Here is the one i have written.. http://www.zubrag.com/downloads/cpanel_subdomains.zip

Thanks Aaditya Kumar [url snipped]

Really? then you are genius. :D

Copying from others and then claiming as own do you think good?

maxima
Newbie Poster
1 post since Sep 2009
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You