Hi,
I've browsed the forums for about an hour now trying to locate posts by people having a problem similar to mine. Suprisingly, I've found none, so I'm making my own post.
I'm trying out the remote access feature for the first time and have copied some code (PHP) from the manual at http://www.cpanel.net/manual/remoteaccess-php.html. However, the functions aren't returning any values, meaning that the resulting page is blank.
I've tried to remove parameters and altering the remote access key to get some response at all, and that does of course return various error msgs. However, when I run the following script, nothing is printed out. And before anyone asks: yes, there does exist packages on the server.
[script]
<?php
require '/usr/local/cpanel/Cpanel/Accounting.php.inc';
$host = "localhost";
$user = "root";
$accesshash = 'removed for security reasons';
$pkgs = listpkgs($host,$user,$accesshash, 0);
print_r($pkgs);
?>
[/script]
Does anyone have any idea as to what the problem could be?
Thanks in advance !
Sincerely,
Eirik Johansen



LinkBack URL
About LinkBacks
Reply With Quote




