php and making folders (mkdir)
Posted: Thu Mar 16, 2006 11:10 pm
I am able to create one level just fine, but I want to make two! This code creates one folder, but it just won't make that second folder inside the first.
Does anyone know if this is even possible, and if so then how? I am not looking to set permissions or any other fanciness, just plain old folders.
Code: Select all
// Create a folder
$pagefolder=$_POST['pagefolder'];
exec("mkdir $pagefolder");
// now place a folder in that folder.
$url_images = $_POST['url_images'];
$picfolder = $pagefolder;
$picfolder .='/';
$picfolder .=$url_images;
exec("mkdir $picfolder");