loop
03-18-2005, 11:20 AM
Hi!
I try to write small php script that create an account in my WHM. I try to use WHM build createacct function.
I have something like this:
require ('/usr/local/cpanel/Cpanel/Accounting.php.inc');
$whm_host="localhost";
$whm_user="my_whm_user";
$whm_usessl="1";
$whm_key="my_accesshash";
$acc_login="user1";
$acc_pass="passuser1";
$acc_plan="plan1";
$acc_domain=$acc_login.".mydomain.pl";
$status = createacct($whm_host,$whm_user,$whm_key,$whm_usessl,$acc_domain,$acc_login,$acc_pass,$acc_plan);
echo $status;
Unfortunetly this code want work. Even var $status want return enything. I try with SSL and SOCKET connection, with mydomain and localhost, i try everything and I still don`t have even error message, just blank page :(
Please help me if you know whats wrong.
I try to write small php script that create an account in my WHM. I try to use WHM build createacct function.
I have something like this:
require ('/usr/local/cpanel/Cpanel/Accounting.php.inc');
$whm_host="localhost";
$whm_user="my_whm_user";
$whm_usessl="1";
$whm_key="my_accesshash";
$acc_login="user1";
$acc_pass="passuser1";
$acc_plan="plan1";
$acc_domain=$acc_login.".mydomain.pl";
$status = createacct($whm_host,$whm_user,$whm_key,$whm_usessl,$acc_domain,$acc_login,$acc_pass,$acc_plan);
echo $status;
Unfortunetly this code want work. Even var $status want return enything. I try with SSL and SOCKET connection, with mydomain and localhost, i try everything and I still don`t have even error message, just blank page :(
Please help me if you know whats wrong.
