当前位置:Gxlcms > PHP教程 > PHP遍历单目录可写权限脚本_PHP教程

PHP遍历单目录可写权限脚本_PHP教程

时间:2021-07-01 10:21:17 帮助过:6人阅读

FUCK IT

常用文件路径:

c:\windows

c:\Documents and Settings

c:\Program Files

c:\Documents and Settings\All Users\Application Data\Microsoft\Media Index

C:\php\PEAR

C:\Program Files\Zend\ZendOptimizer-3.3.0

C:\Program Files\Common Files

C:\7i24.com\iissafe\log

C:\windows

C:\RECYCLER

C:\windows\temp

c:\Program Files\Microsoft SQL Server\90\Shared\ErrorDumps

f:\recycler

C:\Program Files\Symantec AntiVirus\SAVRT

C:\WINDOWS\7i24.com\FreeHost

C:\php\dev

C:\~1

C:\System Volume Information

C:\Program Files\Zend\ZendOptimizer-3.3.0\docs

C:\Documents and Settings\All Users\DRM

C:\Documents and Settings\All Users\Application Data\McAfee\DesktopProtection

C:\Documents and Settings\All Users\Application Data\360safe\softmgr

C:\Program Files\Microsoft SQL Server\90\Shared\ErrorDumps


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);

}

}

}

}

}

?>

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/478487.htmlTechArticle!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd html xmlns=http://www.w3.org/1999/xhtml html head meta http-equi...

人气教程排行