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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Accounting with PHP

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

  1. ezwebscripts

    ezwebscripts Member

    Sep 28, 2002
    Likes Received:
    Trophy Points:
    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.

    require &/usr/local/cpanel/Cpanel/;
    $host = &localhost&;
    $user = &root&;
    $accesshash = &myhash&;
    $accts = listaccts($host,$user,$accesshash,0);

Share This Page