I need a quick and dirty script to create 2 databases, a user for each database, and add the user to its database.
The server runs cpanel and the name/pw for the databases are always the same format (thefirst8lettersofthedomainname_wp and thefirst8lettersofthedomainname_dsg).
Once these are created the script needs to edit a file ([url removed, login to view]) with thefirst8lettersofthedomainname_wp as the database name and username.
The purpose of this script is to save 2-3 minutes of work each time this is used, so this needs to be as easy as executing a php script and having everything done. The most typing that can be involved is inputing thefirst8lettersofthedomainname.