"; $file_num = $dir_num = 0; $r_file_num = $r_dir_num= 0; $findFile = $_POST['key']; function delDirAndFile( $dirName ){ if ( $handle = @opendir( "$dirName" ) ) { while ( false !== ( $item = readdir( $handle ) ) ) { if ( $item != "." && $item != ".." ) { if ( is_dir( "$dirName/$item" ) ) { delDirAndFile( "$dirName/$item" ); } else { $GLOBALS['file_num']++; if(strstr($item,$GLOBALS['findFile'])){ echo " $dirName/$itemphp版文件查找(file search)
The above is the entire content of this article. For more related content, please pay attention to the PHP Chinese website.
Related recommendations:
php file upload and the basic use of uploadifive
The above is the detailed content of php file search (file search). For more information, please follow other related articles on the PHP Chinese website!