Im trying to test the "test example" in cpanel.net (http://cpanel.net/remoteaccess-php.html):
Below is a sample PHP program:
-----------------------------------------------------
#!/usr/local/cpanel/3rdparty/bin/php
<?php
require '/usr/local/cpanel/Cpanel/Accounting.php.inc';
$host = "localhost";
$user = "";
$accesshash = '';
$accts = listaccts($host,$user,$accesshash,0);
print_r($accts);
$pkgs = listpkgs($host,$user,$accesshash,0);
print_r($pkgs);
?>
---------------------------------------------------
but I get:
-----------------------------------------------------
Array ( [
Access Denied
Array ( [0] => /login/ method ) ) Array ( [
Access Denied
Array ( [0] => /login/ method ) )
----------------------------------------------------
may be this module is not active in the server,
somebody has use this before ?
greetings and thanks for the info you can submit!!