Reputation: 384
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.
If there is a php script to create a sub domain what is it. Thank you
Upvotes: 0
Views: 1293
Reputation: 32127
You can use CPanel's API for this. Have a look here:
http://docs.cpanel.net/twiki/bin/view/SoftwareDevelopmentKit/XmlApi#DNS functions
More specifically, here:
http://docs.cpanel.net/twiki/bin/view/SoftwareDevelopmentKit/AddZoneRecord
Upvotes: 1