Click here to Skip to main content
15,943,061 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
I have hosting with a cpanel accelerated 2 panel here I can manually create a sub domain but is there a way to create a sub domain with a php script so they input the sub domain they like then click submit and it will create a sub domain for them. Thank you.

What I want is to create subdomains in cpanel using the API in php. Just like, web.xitzone.cob or I have been searching since three days but haven't found anything useful or maybe I don't understand the answers that I got. Can someone give me a working example with a little bit of explanation so that I can create sub domains dynamically. Or if any one has this working then can you please send me the code.
Updated 14-Jun-17 22:34pm

1 solution

Without Cpanel, you do not create sub-domain, in Cpanel, there is dynamically PHP script code which is used for create a sub domain
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900