Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Apr 2009
    Posts
    3

    Default Getting CPanel Information with PHP

    Hi,
    I am programming a Wordpress plugin that gets cpanel information from users.

    I am using PHP.

    Is there an easy way of getting this information off of the cpanel without using regular expressions (all I've been able to find)...

    For example, I have figured out how to add emails and forwarders; but not list them or delete them.

    Thanks a lot for your help!

    Andrew

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

    Root Administrator

    Default

    Quote Originally Posted by arpowers View Post
    Hi,
    I am programming a Wordpress plugin that gets cpanel information from users.

    I am using PHP.

    Is there an easy way of getting this information off of the cpanel without using regular expressions (all I've been able to find)...

    For example, I have figured out how to add emails and forwarders; but not list them or delete them.

    Thanks a lot for your help!

    Andrew
    You may want to use API1 and API2 via our XML API. You can use it over port 2082 (port 2083 if using SSL) with the user's cPanel credentials.

    How to delete a forwarder:
    http://forums.cpanel.net/showpost.ph...53&postcount=5

    For listing forwarders:
    http://twiki.cpanel.net/twiki/bin/vi...ListForwarders

    For information on calling these functions via the XML API, you can review our documentation at: http://twiki.cpanel.net/twiki/bin/vi...ngAPIFunctions

    Alternatively, you can find a pre-assembled PHP 5 class for calling these functions at: http://forums.cpanel.net/showthread.php?t=111897

Similar Threads & Tags
Similar threads

  1. no version information available (required by /usr/bin/php)
    By golden_eyes in forum cPanel and WHM Discussions
    Replies: 9
    Last Post: 11-25-2011, 07:01 PM
  2. PHP version missing from General Server Information
    By globule in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 08-20-2006, 04:36 PM
  3. Where does cpanel get the information from?
    By amahmood in forum New User Questions
    Replies: 3
    Last Post: 03-05-2005, 02:28 PM
  4. Using cPanel Login Information?
    By Pixelation in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 06-06-2004, 08:38 PM
  5. WHM Information (RE: upload_tmp_dir and PHP)
    By g3b in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 02-19-2003, 04:37 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube