Currently I have to create a folder similar in window file system.
For example: if folder is exist , add (1) at the end , if (1) is exist , add (2) at the end, the problem is , are there standard function in PHP or I have to write my own function?
if (isdir($folderPath)) {
$folderPath = ...special handling or any PHP standard function ..
mkdir($folderPath);
}
From reading PHP manual , so far there is no similar parameter for me to handle this? Are there any function besides mkdir will work ?Thanks