Using security tokens in account creation script

forx

Registered
Jun 21, 2005
2
0
151
Hello

I was using the following php script to create accounts


Code:
$script = "http://{$whm_user}:{$whm_pass}@{$whm_host}:2086/scripts/wwwacct";
$params = "?plan={$user_plan}&domain={$user_domain}&username={$user_name}&password={$user_pass}&[email protected]";
$result = file_get_contents($script.$params);

echo $result;

Now for security tokens I get an access denied error

Can anyone please post an updated working php script?

Thank you very much!
 

cPanelNick

Administrator
Staff member
Mar 9, 2015
3,488
35
158
cPanel Access Level
DataCenter Provider