We have a saas based software application where each user is given a separate sub-domain. The application is hosted on Hostgator
We need a Script for creation of these sub-domains. Hence when a new user comes for registration, we will check for availability of the sub-domain and if not used already, will call the script and provide the sub domain. The script will create sub-domain in HostGator and confirm back to us will based on which we will insert the Sub-domain into the database.