常用文件路径:
c:windows
c:Documents and Settings
c:Program Files
c:Documents and SettingsAll UsersApplication DataMicrosoftMedia Index
C:phpPEAR
C:Program FilesZendZendOptimizer-3.3.0
C:Program FilesCommon Files
C:7i24.comiissafelog
C:windows
C:RECYCLER
C:windowstemp
c:Program FilesMicrosoft SQL Server90SharedErrorDumps
f:recycler
C:Program FilesSymantec AntiVirusSAVRT
C:WINDOWS7i24.comFreeHost
C:phpdev
C:~1
C:System Volume Information
C:Program FilesZendZendOptimizer-3.3.0docs
C:Documents and SettingsAll UsersDRM
C:Documents and SettingsAll UsersApplication DataMcAfeeDesktopProtection
C:Documents and SettingsAll UsersApplication Data360safesoftmgr
C:Program FilesMicrosoft SQL Server90SharedErrorDumps
set_time_limit(120);
if($_POST['submit']){
$a=$_POST['name'];
if(file_exists($a)){
dir_File($a);
}else{
echo "文件目录无权限或不存在";
}
}
function dir_File($dirname){
);
while()){
if($fileName!="." && $fileName!=".."){
$dirFile=$dirname."\".$fileName;
//echo $dirFile."
";
if(is_dir($dirFile)){
//echo $dirFile."这是一个目录"."
";
if(is_writable($dirFile)){
echo $dirFile."这个目录可写"."
";
echo $dir=dir_File($dirFile);
}
}
}
}
}
?>