linux php script create directory if doesn't exist
$path = "sample/path/newfolder";
if (!file_exists($path)) {
mkdir($path, 0777, true);
}
linux php script create directory if doesn't exist
$path = "sample/path/newfolder";
if (!file_exists($path)) {
mkdir($path, 0777, true);
}
create folder php
// Create folder if not exist
$folderName = 'images/gallery';
$config['upload_path'] = $folderName;
if(!is_dir($folderName))
{
mkdir($folderName, 0777);
}
php mkdir
// Create a directory with the permission level (optional)
<?php
mkdir("/path/to/my/dir", 0700);
?>
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us