Hello,
I want to make a site like sedo.com where users sign up and add there domains.
I need a script or PHP code that can add a parked domain
Hello,
I want to make a site like sedo.com where users sign up and add there domains.
I need a script or PHP code that can add a parked domain
What specifically are you looking to do? Redirect domains or park domains on domains already existing on a server?
yes, i want to park new domains on an existing domain already on the same server and account
Last edited by uzn; 03-29-2011 at 02:53 AM.
You can do this using the xml-api php class:
https://github.com/CpanelInc/xmlapi-...ter/xmlapi.php
see ApiPark < ApiDocs/Api2 < TWiki for information on the API call to make.
You will simple need to run
PHP Code:
$xmlapi = new xmlapi($ip);
$xmlapi->set_port(2083);
$xmlapi->password_auth("username",$pass);
$xmlapi->api2_query('Park', 'park', array( 'domain' => 'newdomainname.com', 'topdomain' => 'existingdomain.com' ) );