A directory search program written by a friend can find the specified directory or file based on the directory name entered by the user. It also supports locking the directory. Friends in need can refer to it.
$folder = array(); function readFolder($path){ global $folder; $folder[] = $path; foreach(glob($ path.DIRECTORY_SEPARATOR.'*') as $f){ if (is_dir($f)) { readFolder($f); } } }
readFolder($cur_path); $folder_op = array(); foreach($folder as $path){ $folder_op[] = "
=
http://www.bkjia.com/PHPjc/444740.htmlwww.bkjia.comtruehttp: //www.bkjia.com/PHPjc/444740.htmlTechArticleA directory search program written by a friend, which can find the specified directory or file based on the directory name entered by the user. , and also supports locking directories. Friends in need can refer to this...
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn