I'm trying to create a copy of an existing database via a php script on a shared hosting account (specifically Bluehost.com). I can't get the CREATE DATABASE command to work, I tried a few variations of this script: How To Programmatically Create MySQL Databases on Shared Linux Hosting Plans, and the support people say that you can't create a database outside of cpanel. I'm wondering if this is truly the case or if anyone has a way of doing it. I can use phpmyadmin to copy the database, but I really need to automate this process so it can be run by a script on the site.
Thanks in advance for any help!