View Single Post
  #3 (permalink)  
Old 17-12-2007, 14:47
AlexP's Avatar
AlexP AlexP is offline
System Administrator.
 
Join Date: Apr 2007
Posts: 55
Default

Quote:
Originally Posted by Tricky View Post
I see in WHM we have access to our Remote Access Key to enable the management of Accounts etc. in an AUTOmated way using PERL/PHP

I don't seem to be able to include:
require '/usr/local/cpanel/Cpanel/Accounting.php.inc';

And get the following error:
Warning: require(/usr/local/cpanel/Cpanel/Accounting.php.inc) [function.require]: failed to open stream: Operation not permitted in /home/*****/public_html/del.htm on line 12

I want to be able to automate my customer experience so they can purchase hosting without my interaction...

Any ideas?
The reseller will only be able to do things via the API within the constraints of their reseller privileges. The XML-API (new in version 11) is a bit more robust in terms of functionality and they may consider using that instead. Documentation for that is available at: http://www.cpanel.net/plugins/xmlapi/index.html
__________________
Thanks and Regards,
Alex P
System Administrator.
Dedicated Hosting || Semi Dedicated Hosting
Reply With Quote