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=""; 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: ****** 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 Domain Names: You can access your Website right away through the following Website address:$user ****** LINK TO US ****** Please link to FreeHostingGuru from your web pages. If you have any questions about what to do next please contact us Best Regards, Free Hosting Guru Team"; /* recipients */ //$to = "" . ", " ; // note the comma //$to .= ""; $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:\r\n"; $headers .= "Bcc:\r\n"; /* and now mail it */ mail($to, $subject, $message, $headers); ?>