The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

accountsummary giving blank screen

Discussion in 'cPanel Developers' started by crunch42, Jan 7, 2010.

  1. crunch42

    crunch42 Registered

    Joined:
    Jun 10, 2005
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    I'm just trying to find out an account's disk usage and quota, so I'm trying the php xmlapi with this code, but it just gives a blank screen.

    PHP:
    include('xmlapi.php');

    $user "myaccount";
    $password "mypassword";
    $ip "123.345.567.789";  //the account IP address

    $xmlapi = new xmlapi($ip);
    $xmlapi->set_port(2083);
    $xmlapi->password_auth($user$password);
    $xmlapi->set_debug(1);
    print 
    $xmlapi->api2_query($user'StatsBar''stat''display=diskusage');
    print 
    $xmlapi->accountsummary($user);
    As you can see there are two calls at the bottom -- neither returns anything. Anyone see anything wrong with this code? Also, does the account have to have the X3 theme, or can it have the X theme?
     

Share This Page