I have a wordpress site using [url removed, login to view] to create a form.
I would like you to use cpanel liveapi to create script if possible.
A field in the form is for user to select a subdomain.
When user saves this form i want cpanel subdomain to be created & a php file to be copied into the subdomain folder.
When user changes the subdomain name I want previous subdomain to be deleted & new cpanel subdomain to be created and php file to be copied to new folder.
When user deletes record I want cpanel subdomain to be deleted (deleting subdomain folder as well).