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!

Weird problem using PHP Accounting function

Discussion in 'General Discussion' started by birkoss, Jan 29, 2005.

  1. birkoss

    birkoss Member

    Jun 13, 2004
    Likes Received:
    Trophy Points:

    I'm using the PHP Accounting function to create account, and it's weird ... it work, but didn't reply something. Here is my code :

    function create_account($domaine, $username, $password, $plan)
    $retour = createacct ($GLOBALS["cpanel_host"],$GLOBALS["cpanel_user"],$GLOBALS["cpanel_accesshash"],0,$domaine,$username,$password,$plan);

    echo "($retour)";

    if (!eregi("wwwacct creation finished",$retour))
    return false;
    return true;

    If an error occured, it get well printed using echo $retour.
    but if the account is created (after a long delay (1-2min)), it didn't echo it, and my navigator says : Done, like if something timeout, or I don't know, but in WHM, I can see the account.

    I'm using : WHM 10.0.0 cPanel 10.0.0-C6

    Is someone can help me, I'll appreciate it.


    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

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