Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Whm Api

Discussion in 'General Discussion' started by rcttrainers, Sep 6, 2003.

  1. rcttrainers

    rcttrainers Member

    Joined:
    Jan 11, 2003
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    151
    I have been trying to get the WHM API to work with no luck I can get it to list accounts but when I use the bellow code nothing

    PHP:
    <?
    #!/usr/local/cpanel/3rdparty/bin/php
    require '/usr/local/cpanel/Cpanel/Accounting.php.inc';
    $host "localhost";
    $user "user";
    $accesshash 'diffhash
    '
    ;
    $usessl 0;
    $acctdomain "test.domain";
    $acctuser "testfo";
    $acctpass "plop";
    $acctplan "user_scripts";
    createacct ($host,$user,$accesshash,$usessl,$acctdomain,$acctuser,$acctpass,$acctplan);
    ?>
    I am a reseller on the server

    cPanel.net Support Ticket Number:
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice