Results 1 to 3 of 3
-
09-22-2009, 04:48 AM #1Temporarily Suspended
- 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.
-
09-22-2009, 03:01 PM #2Junior Guru Wannabe
- 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
-
09-23-2009, 02:17 PM #3Eternal Member
- Join Date
- Nov 2006
- Location
- Houston, TX
- Posts
- 565
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.gzDavid Grega
cPanel Technical Product Specialist
Similar Threads
-
cPanel Zone Templates Question
By whservices in forum Hosting Software and Control PanelsReplies: 8Last Post: 04-25-2008, 07:01 PM -
Curl question
By agapio in forum Dedicated ServerReplies: 2Last Post: 10-03-2006, 02:15 PM -
Curl question
By scheiner in forum Programming DiscussionReplies: 1Last Post: 09-04-2004, 04:07 AM -
PHP question - CURL + CDGCommerce
By Entity in forum Programming DiscussionReplies: 3Last Post: 05-28-2004, 06:57 PM -
cURL Question and compilation
By baddealings.com in forum Hosting Security and TechnologyReplies: 0Last Post: 09-04-2001, 08:01 PM