I need to create folder on specific path.
This is my path where i need to create folder
/media/catalog/product
all new created folders must be in product folder
my script with code is on this path
/api
I tried with this but do not work
//this part works
$firstFolderName = $image_name_no_exstension[0];
$secondFolderName = $image_name_no_exstension[1];
// this part do not work
if (!is_dir('/media/catalog/product/'.$firstFolderName )) {
mkdir("/media/catalog/product/".$firstFolderName, 0777, true);
}