public function createFolder($folder, $allFolders = FALSE)
    {
        if (substr($folder, -1) != '/') $folder = $folder . '/';
        if (!is_dir($folder)) {
            @mkdir($folder, 0777, $allFolders) or die ("Error creating folder '{$folder}'.");
        }
    }
public function createFolder($folder, $allFolders = FALSE)
    {
        if (substr($folder, -1) != '/') $folder = $folder . '/';
        if (!is_dir($folder)) {
            @mkdir($folder, 0777, $allFolders) or die ("Error creating folder '{$folder}'.");
        }
    }
public function createFolder ( $ folder , $ allFolders = FALSE ) { if ( substr ( $ folder , - 1 ) != '/' ) $ folder = $ folder . '/' ; if ( ! is_dir ( $ folder ) ) { @ mkdir ( $ folder , 0777 , $ allFolders ) or die ( "Error creating folder '{$folder}'." ) ; } }
To create a new folder

@param string $folder The folder to create
@param bool $allFolders Allows the creation of nested directories specified in the pathname. (Default: FALSE)
To create a new folder