I'm Trying to create account in my whm with my whm password, but while i trying to curl a url for creating account the server create the account and terminate the connection with no replay. I disabled SSL for Solve this issue but still i cant do that.
my php code:
Please help me to solve this issue.
Thank you.
my php code:
PHP:
<?php
$whmu = 'my whm user';//can be a reseller with WHM access
$whmp = 'my whm pass ';
$whmh = '64.237.54.41';//ip
$udomain = 'domain.com'; // can be subdomain too
$uname = 'domain'; //max 8 characters
$upass = '@@@YuTYUIj&&@@';
$uemail = '[email protected]';
$uplan = 'host71_71_mini'; //the plan has to exist in WHM
$ncc = "https://{$whmu}:{$whmp}@{$whmh}:2087/scripts/wwwacct";
$add = "?plan={$uplan}";
$add .= "&domain={$udomain}";
$add .= "&username={$uname}";
$add .= "&password={$upass}";
$add .= "&contactemail={$uemail}";
$result = file_get_contents($ncc.$add);
echo "<textarea>$result</textarea>";
?>
Thank you.