Hey guys,

I am running a php based social networking website, and i plan to offer my paid members a personalized subdomain.

So for example if you create or upgrade to a paid account with a username coolguy123, a subdomain should automatically be created in the format:

coolguy123.mydomain.com and this personalized domain should lead visitors to your personal profile.

Similarly once a user changes his status from paid to free the subdomain should be deleted.

Is there any automatic script that can achieve this?

Thanks a lot,