Hi
I thook about this a lot
When I login in my cpanel I see the Bandwidth usage and I allows wandered
Can it show by php code in the homepage of my website?
Hi
I thook about this a lot
When I login in my cpanel I see the Bandwidth usage and I allows wandered
Can it show by php code in the homepage of my website?
There are ways, but they are tricky. I'd try using it via perl, it works a LOT better. Check out the cPanel API for the full listing of tags you can use to get some info outta cpanel.
Regards,
Brent
tricky is better
It makes me feel that I’m doing something special
I will see the API you refer to me
Hay![]()
It’s a wide section
I don’t know what they are talking about there![]()
Ok I have a cpanel and whm but I am an only user for them not a developer as I saw there
So could you guide me to the one that I need it to do the job![]()
I’m starting to read the documentation in this website and i found this
http://cpanel.net/remoteaccess-php.html
And
http://www.cpanel.net/Modules-HOWTO.txt
The first one is about php, and it is not useful to understand the story here by php
The second one is by perl and I found in line 179
"stats" = "View Account Statistics";
I don’t know about this stuff but I think that it is related to what I’m searching for![]()
I will see that I can find out, but if you have any information will help me please let me know
this is what i feger out![]()
i know that it's not complate but this is what i can do according to my zero understanding to perlCode:#!/usr/bin/perl BEGIN { push(@INC,"/usr/local/cpanel"); push(@INC,"/usr/local/cpanel/whostmgr/docroot/cgi"); } use 'whmlib'; require 'parseform.pl'; use Cpanel::Accounting; if (!($ACL{'stats'} || $ACL{'all'})) { print "Sorry permission denied to remove user"; exit(); } "stats" = "View Account Statistics";![]()