Hi!
I just testing the remote access in php, below is my script:
Code:
require '/usr/local/cpanel/Cpanel/Accounting.php.inc';
$host = "ip_address_of_my_other_server";// I put remote server IP here
$user = "root";
$accesshash = 'XXXXXXXXX91d6376e0c1d21508c360645c55b5809XXXXXXXX';
$accts = listaccts($host,$user,$accesshash,1);
print_r($accts);
Simple as the sample, I found I can list accounts only in the localhost but not on the remote server, why ? I did have CURL+SSL installed on the remote server and the local server.