Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    fpr
    fpr is offline
    Member fpr's Avatar
    Join Date
    Oct 2006
    Posts
    22

    Default script to see info of cpanel

    I need script to custumer see

    Quota limit and in use
    Bandwidth limit and in use
    FTP Accounts limit and in use
    mysql data base limit and in use
    email accounts limit and in use
    subdomain limit and in use

    I would like someone send me some information about this.

    how i get this info of cpanel.

  2. #2
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,189
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by fpr View Post
    I need script to custumer see

    Quota limit and in use
    Bandwidth limit and in use
    FTP Accounts limit and in use
    mysql data base limit and in use
    email accounts limit and in use
    subdomain limit and in use

    I would like someone send me some information about this.

    how i get this info of cpanel.
    Here's a URL to call from our XML API where username is the cPanel username:

    Code:
    https://SERVER:2083/xml-api/cpanel?user=username&xmlin=<cpanelaction><module>StatsBar</module><func>stat</func><apiversion>2</apiversion><args><display>diskusage|bandwidthusage|ftpaccounts|sqldatabases|emailac_counts|subdomains</display></args></cpanelaction>
    You can find the content for <display>..</display> can be found in index.html within the Branding Editor.

    You can substitute https and 2083 with http and 2082 if you desire.

  3. #3
    fpr
    fpr is offline
    Member fpr's Avatar
    Join Date
    Oct 2006
    Posts
    22

    Default

    how to insert it in my code php? i'm newbie of this.

  4. #4
    fpr
    fpr is offline
    Member fpr's Avatar
    Join Date
    Oct 2006
    Posts
    22

    Default

    if u can, u send one exemple for me?

  5. #5
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,189
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    There are many PHP code samples in the developer section of these forums, such as on: http://forums.cpanel.net/showthread.php?t=106429

Similar Threads & Tags
Similar threads

  1. cPanel Server Info
    By daldot in forum New User Questions
    Replies: 1
    Last Post: 10-08-2010, 11:35 AM
  2. CPanel login info
    By cdub05 in forum New User Questions
    Replies: 1
    Last Post: 07-14-2010, 12:58 PM
  3. Getting info from cpanel
    By RodeoGSR in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 10-21-2004, 01:28 PM
  4. cPanel Skins Info...
    By __DoPe_ShOw__ in forum Themes and Branding
    Replies: 5
    Last Post: 10-15-2004, 07:09 PM
  5. /script to update contact info
    By h2oski in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 02-20-2004, 07:38 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube