Question : create folder php
Answered by : confused-chipmunk-nyedd7qqp54w
// Create folder if not exist $folderName = 'images/gallery'; $config['upload_path'] = $folderName; if(!is_dir($folderName)) { mkdir($folderName, 0777); }
Source : | Last Update : Wed, 02 Sep 20
Question : php mkdir
Answered by : stefan-jilderda
// Create a directory with the permission level (optional)
<?php
mkdir("/path/to/my/dir", 0700);
?>
Source : https://www.php.net/manual/en/function.mkdir.php | Last Update : Tue, 21 Apr 20