Blame me for not keeping you updated :X
I do a lot on web developing (PHP5 and mysql), and that’s what I’ve been doing over the past month and still do. One of my brews is a PHP5 (Object Orientated) script/class that acts as a gateway between a web-application and WHM, which is the administrating module that comes with cPanel.
cPanel does provide a script to do this. The problem however is the way it does. It origines – according the copyright notice – from 2002, and looks like it was programmed in php3. Try to turn on error_reporting for fun, and scroll down for minutes, before getting the actual output (= hopeless). The old (cPanel)script syntax is described here
The intension of my class is that everything between the constructor and destructor is handled over one HTTP connection. Unfortunately the WHM-webserver (which is a derival of apache1.3) doesn’t support the keep-alive http option. No luck so far, however I contacted cPanel, and expect to have this feature enabled soon.
The script below supports the same functionality as the original in exception to a SSL-connection to the WHM-server. The functions IsSuspended and ListSuspend() are a few ones that weren’t available in the script of cPanel. I’m also thinking abut adding a feature to down-/upgrade diskspace and bandwidth limites per account. If you’re interested, let me know…..