create dir php code example
Example: create folder php
// Create folder if not exist
$folderName = 'images/gallery';
$config['upload_path'] = $folderName;
if(!is_dir($folderName))
{
mkdir($folderName, 0777);
}
// Create folder if not exist
$folderName = 'images/gallery';
$config['upload_path'] = $folderName;
if(!is_dir($folderName))
{
mkdir($folderName, 0777);
}