I'm looking for a class that allows me the send commands from my PHP script to cPanel, but I've some troubles finding a proper. This seems to be the best script I've found: http://www.phpclasses.org/browse/package/3534.html
However when I run the commands from the example I receive nothing but the title text only, which means that this:
echo 'Hosting Package: ' . $cPanel->getHostingPackage() . '<br>';
Returns only this:
Hosting Package:
I'm not using SSL
Hope some of you can help me, and it doesn't have to be that script, just need to communicate between my site and cPanel.
I'm looking for a class that allows me the send commands from my PHP script to cPanel, but I've some troubles finding a proper. This seems to be the best script I've found: http://www.phpclasses.org/browse/package/3534.html
However when I run the commands from the example I receive nothing but the title text only, which means that this:
echo 'Hosting Package: ' . $cPanel->getHostingPackage() . '<br>';
Returns only this:
Hosting Package:
I'm not using SSL
Hope some of you can help me, and it doesn't have to be that script, just need to communicate between my site and cPanel.
You may wish to make use of the cPanel APIs directly if you have a reseller account:
If you need help finding a specific API for what you're looking to do, please let me know. Our API documentation is still a work in progress so not everything is documented yet.
Thanks, I've been looking into it a bit, but I'm not sure how to call the XML API from PHP. Do you have any simple example of any function that shows how to call function from PHP?
Thanks, I've been looking into it a bit, but I'm not sure how to call the XML API from PHP. Do you have any simple example of any function that shows how to call function from PHP?
There are very many code samples in PHP on our developer forums at: