folder_array,$path./.$_file);
}
$this->search($path./.$_file,$file);
}elseif(is_file($path./.$_file)&&$_file!=. && $_file!=.. && $_file!==thumbs.db){
if(eregi($file,$_file)){
array_push($this->file_array,$path./.$_file);
}
}
}
$this->all_array[folder]=$this->folder_array;
$this->all_array[file]=$this->file_array;
return $this->all_array;
closedir($h);
}elseif(is_file($path)){
if(eregi($file,$path)){
$this->all_array[file]=$path;
}
return $this->all_array;
}else{
return $this->error(this folder does not exits,please check it out.);
}
}
}
?>
http://www.bkjia.com/phpjc/486238.htmlwww.bkjia.comtruehttp://www.bkjia.com/phpjc/486238.htmltecharticle?php class document { private $file_array =array(); private $folder_array =array(); private $all_array =array(); function search ( $path , $file ){ if( is_dir ( $path )){ $h = open...
