mmkdir example

if(!$this->rmdir($remote)) {
            $this->PushError("mdel", "cannot delete folder", "Cannot delete remote folder \"".$remote."/".$el["name"]."\"");
            $ret=false;
        }
        return $ret;
    }

    function mmkdir($dir$mode = 0777) {
        if(empty($dir)) return FALSE;
        if($this->is_exists($dir) or $dir == "/" ) return TRUE;
        if(!$this->mmkdir(dirname($dir)$mode)) return false;
        $r=$this->mkdir($dir$mode);
        $this->chmod($dir,$mode);
        return $r;
    }

    function glob($pattern$handle=NULL) {
        $path=$output=null;
        if(PHP_OS=='WIN32') $slash='\\';
        else $slash='/';
        $lastpos=strrpos($pattern,$slash);
        if(!($lastpos===false)) {
            
Home | Imprint | This part of the site doesn't use cookies.