Help - Search - Members - Calendar
Full Version: Cpanel Accounting PHP Module
Hostony Board > General Support > General Support
MartinB
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!!
phobos
You need to assign valid values to $user and $accesshash variables.
MartinB
sorry i do a stupid post.
My problem was the accesshash, is working now!
thanks!
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2024 Invision Power Services, Inc.
IPS Driver Error

IPS Driver Error

There appears to be an error with the database.
You can try to refresh the page by clicking here