CpanelInc / xmlapi-php

A PHP Class for Interacting with cPanel's XML-API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

api2_query listdbs filter does not work

rares-lupascu opened this issue · comments

this is the code i am using to find if there is a db called "testing" for the "x" account .. the pb is that everytime it lists all dbs for this account ... am i doing something wrong?

$xmlapi = new xmlapi($ip);
$xmlapi->hash_auth("root",$root_hash);
$xmlapi->set_output('array');
$xmlapi->set_debug(1);

echo '

';
$arrCheck = $xmlapi->api2_query("x", "MysqlFE", "listdbs", array("db"=>"testing"));
print_r($arrCheck);
die();

thanks,
Rares