Location: PHPKode > scripts > WHM XML API > whm-xml-api/test.php
//include the whm class file.

// create a new instance of whm class
$test= new whm;

//initilize the whm object 
//you can use you hostname or an IP below 
//you can find you whm hash when yopu login into your whm account clickong on "Setup Remote Access Key" link.

//This will output the cpanel/whm version.  
$version= $test->version();
echo "Cpanel/whm version is: $version <br>";

//This way you can create an account. 
//This function will return a result set as an array in success and will return false on fail.

//check if creating account was successfull or not.
	//print the result set
	//You can get the errors like this.

Return current item: WHM XML API