Hello,
I am working on a PHP application which allows users to select a domain for themselves.I want to create a sub domain for each user and want it to be available in the cpanel as an account.
This is because,later if the user does not fulfill any terms or conditions,we can terminate his account till,he makes the necessary changes to meet the conditions.
I want to create the sub domain using the xml-api for WHM.Currently I use
to create a new domain.
Is there a function that facilitates this functionality?I should be able to call the function to create the sub domain,and it should be created as an account in WHM. Also,later I would need a function to suspend the account for any breach of rules.
Is this possible or I will have to have each user as a new account(new domain rather)?
Please provide any suggestions or pointers.Went through forum but did not get a complete solution.Most of the posts are a bit older.
Thank you for your time
I am working on a PHP application which allows users to select a domain for themselves.I want to create a sub domain for each user and want it to be available in the cpanel as an account.
This is because,later if the user does not fulfill any terms or conditions,we can terminate his account till,he makes the necessary changes to meet the conditions.
I want to create the sub domain using the xml-api for WHM.Currently I use
PHP:
createacct();
Is there a function that facilitates this functionality?I should be able to call the function to create the sub domain,and it should be created as an account in WHM. Also,later I would need a function to suspend the account for any breach of rules.
Is this possible or I will have to have each user as a new account(new domain rather)?
Please provide any suggestions or pointers.Went through forum but did not get a complete solution.Most of the posts are a bit older.
Thank you for your time
Last edited: