PHP make directory folder
<p>I have already define my selected folder name to create in my mkdir method. But error saying that "mkdir(): No such file or directory". The directory is correct if I removed away the "/"."Folder"."/".</p>

<pre><code>Updated Working code:
$Name = "John";
if(!is_dir("document/".$Name))
{
$dir = "documents/".$Name."/";
    mkdir($dir,0777,true);
    $dir2 = $dir."Folder/";
    mkdir($dir2);
    move_uploaded_file($_FILES["file"]["tmp_name"],$dir2."/".$_FILES["file"]["name"]);

}
</code></pre>

<p>Thanks to xdazz!</p>
