- Nov 6, 2013
- cPanel Access Level
- Website Owner
Well I've search high and low and still cant get any result. I am trying to create an addon domain (I have a shared hosting account) this sample code is from github I would appreciate it if someone could explain this code line by line.
<?php include '../xmlapi.php'; $ip = getenv('REMOTE_HOST'); $root_pass = getenv('REMOTE_PASSWORD'); $domain = "somedns.com"; $xmlapi = new xmlapi($ip); $xmlapi->password_auth("root",$root_pass); $xmlapi->set_http_client('curl'); $xmlapi->set_port(2086); $xmlapi->set_debug(1); print $xmlapi->adddns($domain,$ip); ?>