mundakas

Registered
Oct 23, 2013
3
0
1
cPanel Access Level
Root Administrator
Hi,

I am trying the xmlapi from https://github.com/CpanelInc/xmlapi-php but I don't get any response from server.
I run the following code and it works... should I activate something on cPanel?

PHP:
include_once 'xmlapi.php';

$ip = 'xxxxx';
$root_pass = 'xxxx';

$xmlapi = new xmlapi($ip);
$xmlapi->password_auth("root",$root_pass);
$xmlapi->set_debug(1);
$acct = array( username => "someuser", password => "pass123", domain => "thisdomain.com");
print $xmlapi->createacct($acct);