i successfully created a database using API, but i can delete the database
i use this code
and this returns
string(103) "error=1&text=Error deleting database(s)&details=The database ww does not belong to you<br> "
i use this code
PHP:
$db_name = 'ww';
include 'protocol/httpsocket.php';
$sock = new HTTPSocket;
$sock->connect('localhost',2222);
$sock->set_login($da_login,$da_pass);
$sock->set_method('POST');
$sock->query('/CMD_API_DATABASES',
array(
"action" => "delete",
"select0" => $db_name,
));
and this returns
string(103) "error=1&text=Error deleting database(s)&details=The database ww does not belong to you<br> "