Answers for "how to use @mkdir($targetDir) in php"

PHP
6

create folder php

// Create folder if not exist
		$folderName = 'images/gallery';
		$config['upload_path'] = $folderName;
		if(!is_dir($folderName))
		{
			mkdir($folderName, 0777);
		}
Posted by: Guest on August-26-2020
4

php mkdir

// Create a directory with the permission level (optional)
<?php
mkdir("/path/to/my/dir", 0700);
?>
Posted by: Guest on April-14-2020

Browse Popular Code Answers by Language