Ok I despereately need to get this auto account create script to work. My issue is I created a "createaccount.php" script based on the remote access script info I found on these forums. If I go to the script directly it works (creates an account on the server). Now if I use the below line inside my order form process .php file the account is not created on the server?
my create account .php file looks like this
PHP:
if ($HTTP_POST_VARS['submit']) {
exec('/home/session/public_html/order/account.php &');
echo "thank you for your order";
}
PHP:
#!/usr/local/cpanel/3rdparty/bin/php
<?php
$acctdomain = $_POST['domain'];
$acctuser = $_POST['username'];
$acctpass = $_POST['password'];
$acctplan = $_POST['plans'];
require '/usr/local/cpanel/Cpanel/Accounting.php.inc';
$host = "localhost";
$user = "******";
$accesshash = ' *****';
$usessl = "0";
createacct ($host,$user,$accesshash,$usessl,$acctdomain,$acctuser,$acctpass,$acctplan);
?>