Location: PHPKode > scripts > WHM API > WHM/example.php
<?php
require_once( 'whm.class.php' );

#* https://1.1.1.1:2087
$WHM = new WHM( true , '1.1.1.1' , 'root' , 'pass' );

#* http://1.1.1.1:2086
# $WHM = new WHM( false , '1.1.1.1' , 'root' , 'pass' );

echo '<pre>';
print_r( $WHM->list_accounts() );
echo '</pre>';
?>
Return current item: WHM API