Hello Here is a part of mu final code enter to database,crete subdomain and ftp if anyone need it he can copy it or post it on other forums. Thanks for xaav for helping me with it <?php
include 'mysql-connect.php';
$username = $_POST['username'];
$password = $_POST['password'];
$firstname = $_POST['firstname'];
$lastname = $_POST['lastname'];
$email = $_POST['email'];
$ip = $_SERVER['REMOTE_ADDR'];
$strCheckUserSQL = "SELECT * FROM subs WHERE username='$username'";
$CheckUserQuery = mysql_query($strCheckUserSQL);
$strCheckEmailSQL = "SELECT * FROM subs WHERE email='$email'";
$CheckEmailQuery = mysql_query($strCheckEmailSQL);
$path="http://seifhate:pass@seifhatem.co.cc:2082/frontend/x3/subdomain/doadddomain.html?rootdomain=seifhatem.co.cc&domain=$username";
$path2="http://seifhate:pass@seifhatem.co.cc:2082/frontend/x3/ftp/doaddftp.html?login=$username&password=$password"a=13";
mysql_query("INSERT INTO subs (username, password, firstname, lastname, ip, email)
VALUES ('$username', '$password', '$firstname', '$lastname', '$ip', '$email')");
$f = fopen($path, "r");
stream_get_contents($f);
$f2 = fopen($path2, "r");
stream_get_contents($f2); but there is a problwm am facing that johnny is extremely slow and always returns an error and sometimes just do one or two of the three (subdomain,ftp and mysql) so can anyone help me with a sample cron script that retrieves data from mysql and create the subdomain abd ftp accounts because i am new to cron scripts. Thanks in advance