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 PHP module

Discussion in 'General Discussion' started by InSite, Oct 14, 2003.

  1. InSite

    InSite Member

    Joined:
    Oct 11, 2003
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    Hi,

    Although most of the information on the cPanel remote access page was self-explanitory, it still would have been nice to go into some further detail.

    For example, the code used to list packages and users simply displays the arrays. How can we format this into neat tables to make it readable?

    I am referring to the code on this page:

    http://www.cpanel.net/remoteaccess-php.html

    PHP:
    $pkgs listpkgs($host,$user,$accesshash,0);
    print_r($pkgs);
    Thanks :)

    cPanel.net Support Ticket Number:
     
  2. foxboy

    foxboy Well-Known Member

    Joined:
    Sep 20, 2003
    Messages:
    66
    Likes Received:
    0
    Trophy Points:
    6
  3. InSite

    InSite Member

    Joined:
    Oct 11, 2003
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    Hard to believe that this is the best reply you could all come up with. Thanks :rolleyes:
     
  4. foxboy

    foxboy Well-Known Member

    Joined:
    Sep 20, 2003
    Messages:
    66
    Likes Received:
    0
    Trophy Points:
    6
    Hello, we aren't a PHP support center, if you can't code PHP, hire a coder or ask someone if they can help you (i can help you if you want, low rates high quality)

    Foreach is a very basic function that everybody should understand. if you read the manualpage i dropped above, you would see it's very simple.
     
  5. InSite

    InSite Member

    Joined:
    Oct 11, 2003
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    My point is that the example given isnt practical. It doesnt even explain what order the script outputs information, leaving us to guess. And the output isnt human-readable, which at the very least it should be.
     
  6. foxboy

    foxboy Well-Known Member

    Joined:
    Sep 20, 2003
    Messages:
    66
    Likes Received:
    0
    Trophy Points:
    6
    print_r shows exactly how the array is built, if you know the structure you can build your own script, it's as simple as that.
     
Loading...

Share This Page