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.

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:
    1
    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:
     
Loading...

Share This Page