I am requiring a bit of assistance with Cpanel and PHP script, what I'm trying to do is make a script that will add a domain and point it automatically to a directory already created.
Default Location of Files: /home/internaluser/public_html/domains/
Say I have a domain "www.cpanelexpertsinc.com" (Not a actual domain), I have a form a person fills out with this domain name and Extension. once he submits this it'll automatically allow a domain name to be entered into the system. which will automatically be directed to a directory that is a internal website.
If a person is already registered in the system, the system will remove the old domain (Not the directory) add the new domain in place and redirect it to the new site entered.
Could anyone help me with this script, It will help me and I am sure it will help a lot of other people out their with similar issues.
Thank you very much,