I have a directory on my root called profiles.
I want to add another dir into that and another inside that something like this
profiles > jack > user_images
$username_entry = "jack"; $user_image_dir = "user_images"; mkdir(profiles."/".$username_entry, 0777, true); mkdir(profiles."/".$username_entry."/".$user_image_dir, 0777, true);
But i dont think this is the correct way to do it.
Can anyone help me do this the correct way.