listaccts -> In readable format?

Schaap

Member
Oct 7, 2003
7
0
151
Hello people,

I wonder if someone has ever managed to put the output of "listaccts" in a readable format. (Alias: you don't have to be a rocket scientist to understand what it means. )

If so, could someone show me a small code example?


Also, about the API: How do you use it? Has anyone ever used a function such as "countbandwidth"?

I'm starting to lose hope on this field and wondering why CPanel dev. team made it if nobody can handle it?


On the 1 zillion answers that would say: "Have you used to search function?"
-> Yes, I did, the only things I have read was: "You might want to use the search function" or "check out http://cpanel.net/remoteaccess-php.html"

Anyway,

Thanks in advance!
Ben S.
 

r3n3gad3

Member
Apr 5, 2004
15
0
151
Code:
$accts = listpkgs($host,$user,$accesshash, 1); 

foreach ($accts as $label => $content) { 
echo "$label: $content<BR>\n"; 
}
try this one.