I am trying to create a new folder in PHP, but when I try using the below code, it doesn’t work. None of the codes I tried worked!
Any help would be appreciated!
//Get folder name from form string
$_SERVER['QUERY_STRING'];
$folderName = $_POST['client'];
//Path to where you want to create the new folder
$path = "/clients/";
//Complete path to new folder
$d = $path . $folderName;
chmod($d, 0700);
echo "Folder " . $d . " has been created.";
}