|
Hi,
I'm trying to create a program that would accept the purchase of a website, copy all the files to a user-specified directory, create a database and user, and write the required information to the config.php file. The problem I'm having is that I'm using cPanel on my site, and I cannot create databases or users without going through it. I already tried to GET/POST hack but it requires the user to 1. create the user, 2. create the DB, and 3. to link the DB and user. Since PHP is serverside and it can't send variables without actually GOING to the page, I can't figure out how to create the DBs and users without logging into cPanel. I also tried to login to MySQL and use CREATE and USE to fill in the DB and table info, but my hosting provider made it impossible to do that by taking away the permissions.
Any clues?
Thank you so much,
KMKZ
|