Hi everyone! I have looked everywhere but cant find any decent docs on the cPanel/WHM API. I am building a large Hosting company site and we need to do auto provisioning of accounts and so on..... I am not professing to be the best coder in the world and am having some real problems trying to figure this out.
Does anyone know of a decent class for sending strings to the server to set up / delete / provision accounts on WHM? I have tried the one on PHP-Classes and sourceforge and it does not work. I get fsockopen errors telling me
Warning: fsockopen() [function.fsockopen]: unable to connect to ssl://www.domainname.com:2087 (Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP?)
if you try to iuse the unsecure protocol in the class, this is what I get.....
Warning: fsockopen() [function.fsockopen]: php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/barak22/public_html/whm.php on line 52
yet I cant find any functions that even look for php_network_getaddresses: getaddrinfo ....
I am stumpped.
OpenSSL is installed and configured. PHP 5. Any input would really be helpful as we need to launch this thing quick. Thanks