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.

Remote access

Discussion in 'General Discussion' started by mmkassem, Nov 1, 2002.

  1. mmkassem

    mmkassem Well-Known Member

    Joined:
    Oct 21, 2002
    Messages:
    390
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Egypt
    I tried using :

    &?php

    require_once &/usr/local/cpanel/Cpanel/Accounting.php.inc&;
    $host = &localhost&;
    $user = &myusername&;
    $accesshash = 'the long access hash here';

    $accts = listaccts($host,$user,$accesshash,0);
    print_r($accts);
    $pkgs = listpkgs($host,$user,$accesshash,0);
    print_r($pkgs);

    ?&
    but it did not bring any output, Can anyone help?

    Thanks
     
Loading...

Share This Page