Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!


Discussion in 'General Discussion' started by demian, Jun 25, 2004.

  1. demian

    demian Member

    Aug 25, 2003
    Likes Received:
    Trophy Points:
    HEllo everyone,

    I'm writing a script, I'm using the cpanel API, so when I connect it works fine, but if the password is wrong, or the hashkey is wrong, there is no way to know that, I mean, if the login failes, it returns weird things, what's necessary to know when a login connection failled ??

    I'm doing like this:

    $host = "";
    $user = "test";
    $usessl = 0;

    $packs = array();
    $packs = $form->listaccts_($host,$user,$accesshash,$usessl);

    echo '<pre>';
    echo '</pre>';

    Tks a lot

    Demian Escobar

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice