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

    Joined:
    Sep 28, 2002
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    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);
    ?&
     
Loading...

Share This Page