Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    Jul 2004
    Posts
    26

    Default Parked domains (XMLAPI)

    Hello all,

    I am using the XMLAPI php class, and i think i am confused some wheres. From what i been reading, i cna some how use this script to add a park domain to a cpanel account. Can someone point out to me how? i dont see how too well in the docs.

  2. #2
    Member
    Join Date
    Jul 2004
    Posts
    26

    Default

    Hello all,

    this is what i came up with and it works, but is it the best option i have?

    Code:
    if ($action == "park" ) {
    
    $args = array( domain => $domain );
    
    print $xmlapi->api2_query($username, 'Park', 'park', $args);
    
    } elseif ($action == "unpark") {
    
    $args = array( domain => $domain );
    
    print $xmlapi->api2_query($username, 'Park', 'unpark', $args);
    
    } else {
    die("No aciton defined");
    }
    TheServerDoctor
    Stable, Fast and Reliable Servers at Low Prices!

Similar Threads & Tags
Similar threads

  1. XMLAPI adding parked domain woes!
    By WebJIVE in forum cPanel Developers
    Replies: 5
    Last Post: 06-29-2011, 11:01 PM
  2. Parked Domains not Showing in 'List Parked Domains'
    By frenziedfox in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 03-10-2010, 02:48 PM
  3. Allow parked domains that aren't actually parked
    By PRSBOY in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 09-17-2009, 10:32 AM
  4. Replies: 0
    Last Post: 01-09-2008, 12:41 PM
  5. Parked domain colors in list parked domains?
    By superiorhost in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 07-28-2002, 06:59 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube