Account Creating Problem Via PHP

toshost

Member
Dec 8, 2013
7
0
51
Bangladesh
cPanel Access Level
Root Administrator
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:
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>";
?>
Please help me to solve this issue.

Thank you.
 

KostonConsulting

Well-Known Member
Verifed Vendor
Jun 17, 2010
255
1
68
San Francisco, CA
cPanel Access Level
Root Administrator