Guest User

Untitled

a guest
Aug 9th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. $nome_bd = "usuario_cpanel" . md5(uniqid(time()));
  2.  
  3. $db_host = "minha_url";
  4. $cpuser = "meu_usuario";
  5. $cppass = "minha_senha";
  6.  
  7. $xmlapi = new xmlapi($db_host);
  8. $xmlapi->set_port(2083);
  9. $xmlapi->password_auth($cpuser, $cppass);
  10. $xmlapi->set_debug(1);
  11.  
  12. print($xmlapi->api1_query($cpuser, 'Mysql', 'adddb', array($nome_bd)));
  13.  
  14. $xmlapi->api1_query($cpuser, 'Mysql', 'adduserdb', array($nome_bd, 'usuario_bd', 'all'));
  15.  
  16. [09-Aug-2018 14:38:14 America/Sao_Paulo] Some error message here
Add Comment
Please, Sign In to add comment