Hello,
i just want to create account on WHM via API PHP,
i've just found something surfing here but no one has working properly.
basically i try to do this:
include_once 'xmlapi-php-master/xmlapi.php';
----------
$ip = getenv('PUT_HERE_IP');
$root_pass = getenv('PUT_HERE_PASSWORD_OF_WHM');
$xmlapi = new xmlapi($ip);
$xmlapi->password_auth("root",$root_pass);
$xmlapi->set_output("xml");
$xmlapi->set_debug(1);
$acct = array(
username => "some_username",
password => "[email protected]",
domain => "domain.com",
contactemail => "[email protected]",
pkgname => "package_name"
);
print $xmlapi->createacct($acct);
------------
but nothing happens
Could someone help me please with this?
i just want to create account on WHM via API PHP,
i've just found something surfing here but no one has working properly.
basically i try to do this:
include_once 'xmlapi-php-master/xmlapi.php';
----------
$ip = getenv('PUT_HERE_IP');
$root_pass = getenv('PUT_HERE_PASSWORD_OF_WHM');
$xmlapi = new xmlapi($ip);
$xmlapi->password_auth("root",$root_pass);
$xmlapi->set_output("xml");
$xmlapi->set_debug(1);
$acct = array(
username => "some_username",
password => "[email protected]",
domain => "domain.com",
contactemail => "[email protected]",
pkgname => "package_name"
);
print $xmlapi->createacct($acct);
------------
but nothing happens
Could someone help me please with this?