Weird problem using PHP Accounting function

birkoss

Member
Jun 13, 2004
11
0
151
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