public static function createWorkingDirectory()
    {
        $workdir = sys_get_temp_dir() . '/tmp-' . session_id() . '/';

        self::recursiveMkdir($workdir, 0777);
        //@chmod($workdir,0777);

        if (!is_dir($workdir)) {
            throw new Exception("cannot create directory: " . $workdir);
        }

        return $workdir;
    }
public static function createWorkingDirectory()
    {
        $workdir = sys_get_temp_dir() . '/tmp-' . session_id() . '/';

        self::recursiveMkdir($workdir, 0777);
        //@chmod($workdir,0777);

        if (!is_dir($workdir)) {
            throw new Exception("cannot create directory: " . $workdir);
        }

        return $workdir;
    }
public static function createWorkingDirectory ( ) { $ workdir = sys_get_temp_dir ( ) . '/tmp-' . session_id ( ) . '/' ; self :: recursiveMkdir ( $ workdir , 0777 ) ; //@chmod($workdir,0777); if ( ! is_dir ( $ workdir ) ) { throw new Exception ( "cannot create directory: " . $ workdir ) ; } return $ workdir ; }
Creates a unique temporary directory and returns the absolute path

@return string the absolute path to the temporary directory
Creates a unique temporary directory and returns the absolute path