The folder could not be created. Make sure the name you
entered is a valid folder name. Please hit BACK to change the username

"; } else { $msg = "

User: $dirname has been created. click Here login the File manager. Enjoy your new site!

"; } $source="/home/free/public_html/Assets/index.php"; $destination="/home/free/public_html/$user/index1.php"; $cm_result = copy($source, $destination); echo $msg; // Sending email to my account for monitor purpose $recipient="join@freehostingguru.com"; mail($recipient, $user, $message); $message="Thank you for choosing Free Hosting Guru. Please save this e-mail for future reference. ****** ACCOUNT OVERVIEW ****** Your Username and Password below can be used to upload your Website: Membername: $user Password: $password File Manager: http://www.freehostingguru.com/login.php4 ****** WHAT TO DO NEXT ****** Web Publishing: Once you have created your web pages, you will need to send them to your web space on our servers using File Manager interface http://www.freehostingguru.com/login.php4 Domain Names: You can access your Website right away through the following Website address: http://www.freehostingguru.com/$user ****** LINK TO US ****** Please link to FreeHostingGuru from your web pages. http://www.freehostingguru.com/linktous.php If you have any questions about what to do next please contact us support@freehostingguru.com Best Regards, Free Hosting Guru Team http://www.freehostingguru.com"; /* recipients */ //$to = "funwork2003@hotmail.com" . ", " ; // note the comma //$to .= "support@freehostingguru.com"; $to = $email; /* subject */ $subject = "Welcome to Free Hosting Guru - Account Information"; /* To send HTML mail, you can set the Content-type header. */ $headers = "MIME-Version: 1.0\r\n"; //$headers .= "Content-type: text/html; charset=iso-8859-1\r\n"; $headers .= "Content-type: text/plain; charset=iso-8859-1\r\n"; /* additional headers */ //$headers .= "To: New Account , FHG Support \r\n"; //$headers .= "To: New Account \r\n"; $headers .= "From: Free Hosting Guru Support \r\n"; //$headers .= "Cc: birthdayarchive@example.com\r\n"; $headers .= "Bcc: support@freehostingguru.com\r\n"; /* and now mail it */ mail($to, $subject, $message, $headers); ?>