Ralph - 2008-12-02 15:36:16 -
In reply to message 1 from Ralph
I found out the fix was to use "localhost" instead of my domain name because my cpanel provider's firewall was not letting me connect.
Now I can connect but my test code displays 0MB:
require_once('cPanel.php');
$cPanel = new cPanel('localhost', 'username', 'password', 2082, false);
echo 'Disk Space Used: ' . $cPanel->getSpaceUsed() . ' MB<br>';