Hi,
I'm currently trying to get user information via whm's xmlapi php class and convert the information into php variables. My code looks like this
thank you in advance for your assistance and suggestions
David
I'm currently trying to get user information via whm's xmlapi php class and convert the information into php variables. My code looks like this
PHP:
//Ive deleted any information that could be used to login to my server
$server_username ='root';
$ip = '0.0.0.0';
$root_hash = 'hash goes here';
//server ip is passed
$xmlapi = new xmlapi($ip);
//server username normally root and hash is passed
$xmlapi->hash_auth($server_username,$root_hash);
$whm_username = 'some_user';
$xmlapi->set_debug(1);
$args = array('display' => 'bandwidthusage');
$xmlapi->api2_query($whm_username, 'StatsBar', 'stat', $args);
David