Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 2009
    Location
    Manila
    Posts
    301

    cPanel Add dns zone, Curl and PHP question

    Does anyone know how to use PHP and Curl to add dns zones in cPanel without me having to log in to WHM to add them?

    I am trying to automate this process by developing a CURL + PHP script so any help is appreciated.

  2. #2
    Join Date
    Apr 2009
    Posts
    50
    cPanel has an XML API that helps you do such things rather than custom methods. Documentation available below.

    http://twiki.cpanel.net/twiki/bin/vi...ion/AddDNSZone

  3. #3
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    565
    Quote Originally Posted by JawadA View Post
    cPanel has an XML API that helps you do such things rather than custom methods. Documentation available below.

    http://twiki.cpanel.net/twiki/bin/vi...ion/AddDNSZone
    To elaborate, the DNS-related functions of the XML API are new to version 11.25, which, as of writing this post, is only in EDGE. You can always find the latest version information for cPanel builds at: http://layer1.cPanel.net

    If you are using PHP 5, I recommend using the PHP 5 class we developed for integrating your PHP code with our APIs: http://sdk.cpanel.net/lib/cp_xmlapi_php.tar.gz
    David Grega
    cPanel Technical Product Specialist

Similar Threads

  1. cPanel Zone Templates Question
    By whservices in forum Hosting Software and Control Panels
    Replies: 8
    Last Post: 04-25-2008, 07:01 PM
  2. Curl question
    By agapio in forum Dedicated Server
    Replies: 2
    Last Post: 10-03-2006, 02:15 PM
  3. Curl question
    By scheiner in forum Programming Discussion
    Replies: 1
    Last Post: 09-04-2004, 04:07 AM
  4. PHP question - CURL + CDGCommerce
    By Entity in forum Programming Discussion
    Replies: 3
    Last Post: 05-28-2004, 06:57 PM
  5. cURL Question and compilation
    By baddealings.com in forum Hosting Security and Technology
    Replies: 0
    Last Post: 09-04-2001, 08:01 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •