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

Recommended Answers

All 5 Replies

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

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

ya link not working

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.