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.

CPanel API

Discussion in 'General Discussion' started by r3n3gad3, Nov 14, 2004.

  1. r3n3gad3

    r3n3gad3 Member

    Joined:
    Apr 5, 2004
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    1
    Hey does someone know how they work?
    I just cant find out :(
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Unless you're quite proficient with PHP or Perl programming you are probably going to struggle. You need to look through one of the cPanel themes, e.g. X to understand the structure.

    If you are using Perl, then /usr/local/cpanel/Cpanel.pm SafeFile.pm and *api.txt are a start.
     
  3. r3n3gad3

    r3n3gad3 Member

    Joined:
    Apr 5, 2004
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    1
    I already have the *api.txt file :)
    But now to understand how they work ....

    Can you give me an example of it?
    I am using PHP.
     
  4. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    I can't, I'm afraid - I don't do PHP ;)
     
  5. r3n3gad3

    r3n3gad3 Member

    Joined:
    Apr 5, 2004
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    1
    Hmm to bad can you give me an example in perl then?
     
  6. anand

    anand Well-Known Member

    Joined:
    Nov 11, 2002
    Messages:
    1,435
    Likes Received:
    1
    Trophy Points:
    38
    Location:
    India
    cPanel Access Level:
    DataCenter Provider
    Try this out

    http://whmapi.cpanelappz.com

    It has complete php examples showing how to use all functions available. The examples are in ready to use shape.
     
Loading...

Share This Page