The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Weird problem using PHP Accounting function

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

  1. birkoss

    birkoss Member

    Joined:
    Jun 13, 2004
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    Hi

    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;
    else
    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.

    Thanks

    birkoss
     
Loading...

Share This Page