i need this !!!
Thanks Jim, i follow the example in cpanel.net to create account, but the script doesn´t return anithing. I put this script in www directory and the plan i have ever configurated in WHM. When i run a script, after i reload my list plain from whm , but doesn´t work.
supose this script is create.php
PHP:--------------------------------------------------------------------------------
require '/usr/local/cpanel/Cpanel/Accounting.php.inc';
$host = "localhost";
$user = "user";
$accesshash = 'ACCESSHASH';
$usessl = "1";
$do = createacct($host,$user,$accesshash,$usessl,$acctdomain,$acctuser,$acctpass,$acctplan);
if (!eregi("wwwacct creation finished",$do)){
echo "There has been a problem with your account creation!<br>Please contact support for help!";
}
else
{
Header("Location: success.html");
}
i call this manner
www.mydomain.com/create.php
is all right?
see you
Marcos