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!

Accounting with PHP

Discussion in 'General Discussion' started by ezwebscripts, Oct 19, 2002.

  1. ezwebscripts

    ezwebscripts Member

    Joined:
    Sep 28, 2002
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    151
    Hey, can someone please help me out with cPanel Accounting with PHP? I want to execute this simple command, but my result is always &using socket&. No matter what cPanel Account command I try, the result is &using socket& and nothing happens. Anyone have any idea what's going on here??

    My code is exactly has shown below, except I changed the $accesshash, but I know accesshash is not the problem.


    &?php
    require &/usr/local/cpanel/Cpanel/Accounting.php.inc&;
    $host = &localhost&;
    $user = &root&;
    $accesshash = &myhash&;
    $accts = listaccts($host,$user,$accesshash,0);
    print_r($accts);
    ?&
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

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