Skip to main content

PHP Plugin not loading page...

Comments

2 comments

  • Infopro
    You'll need to do the troubleshooting yourself and if you run into a specific problem using the cPanel API, post about that specifically here for possible assistance.
    0
  • hirani89
    I think the main problem here is creating the database. I used the code below to test database creation. But same problem... Nothing happens on the page and no database is created either...
    password_auth("root","cei9jeeTi9Aehash"); $xmlapi->set_debug(1);//this setting will put output into the error log in the directory that you are calling script from $xmlapi->set_output('array');//set this for browser output //create database $createdb = $xmlapi->api1_query($cpuser, "Mysql", "adddb", array($databasename)); foreach($createdb as $v) { $result = $v['result">; } if ($result == 1) { //create user $usr = $xmlapi->api1_query($cpuser, "Mysql", "adduser", array($databaseuser, $databasepass)); } foreach($usr as $v) { $result2 = $v['result">; } if ($result2 == 1) { //add user to database $addusr = $xmlapi->api1_query($cpuser, "Mysql", "adduserdb", array($databasename, $databaseuser, 'all')); } ?>
    0

Please sign in to leave a comment.