I have been trying to get the PHP script for this to work for a week now. I have searched all through this forum and tried every solution listed here. Are there any settings that must be present either in WHM or on server (other than Curl, which is installed) in order for the script to work. I have used a script which another user posted (Jim) and have tried every combination of variable possible to no avail. With this script I get an error message everytime (the built in message, not PHP error) and no account creation. Am I overlooking something small. I just can't see anything wrong with the script in its present form. I would appreciate any help anyone could give. The script is as follows:
<?php
require '/usr/local/cpanel/Cpanel/Accounting.php.inc';
$host = "localhost";
$user = "myusername";
$accesshash = 'my access hash';
$usessl = 1;
$acctdomain = "testdomain.com";
$acctuser = "user";
$acctpass = "password";
$acctplan= "Lite";
$do = createacct($host,$user,$accesshash,$usessl,$acctdomain,$acctuser,$acctpass,$acctplan);
if (!eregi("wwwacct creation finished",$do)){
echo "Oh no. There was a problem.";
}
else {
echo "Great, the account $acctuser was created successfully.";
}
?>
Please Help!
cPanel.net Support Ticket Number:
cPanel.net Support Ticket Number:



LinkBack URL
About LinkBacks
Reply With Quote





