Hello,
Im trying to create a new directory in the images folder when the user signs up using mkdir()
Im having a slight problem i want it, in the images directory, to create a directory called the username that the user signed up with.
Here is part of the code -
if ( !isset($error) )
{
mkdir("/user_area/images/".$username."/");
//Insert Into Database
$insert = "INSERT INTO temp_member_db(confirm_code, username, password, email)VALUES('$confirm_code', '$username', '$password', '$email')";
$result = mysql_query($insert);
if($result){
// SEND MAIL FORM
$to=$email;
$subject="COMPANY - Confirm you email";
$header="from: <your email>";
// Content
$message="Your Comfirmation link \r\n";
$message.="Click on this link to activate your account \r\n";
$message.="http://www.yourweb.com/confirmation.php?passkey=$confirm_code";
// Send the email
$sentmail = mail($to,$subject,$message,$header);
}else {
echo "Not found your email in our database";
}
// Successful Send
if($sentmail){
echo "redirect to another page";
}else {
echo "redirect to another page";
}
Only problem is when i click signup with all the field correct and everything i receive this error message about the mkdir() bit.
Warning: mkdir() [function.mkdir]: No such file or directory in C:\xampp\htdocs\social network\Social Network new\Login System\register.php on line 57
I would be very thankful for any help.