If you use this, what does it return? How would I write the following in php.
Create an account and if the account creation failed, tell the uesr what happened. Otherwise, continue to another page (named page2.php). Thanks
If you use this, what does it return? How would I write the following in php.
Create an account and if the account creation failed, tell the uesr what happened. Otherwise, continue to another page (named page2.php). Thanks
Hi,
hope this helps,PHP Code: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");
}
Thanks
And then just fill in the other info like username, acctplan, etc with those values and I'm set?
Yep,
the only other values you need are:
$acctdomain
$acctuser
$acctpass
$acctplan
Thanks
I am using the code you mention but I get:
I checked my plan and it is right.There has been a problem with your account creation!
Please contact support for help!
The test script works to display the accounts so the login portion is working. Just not creating the account.
cPanel.net Support Ticket Number:
-Albert
Create an account manually in WHM and verify it is actually working.Originally posted by asmithjr
I am using the code you mention but I get:
I checked my plan and it is right.
The test script works to display the accounts so the login portion is working. Just not creating the account.
cPanel.net Support Ticket Number:
cPanel.net Support Ticket Number: