时间:2021-07-01 10:21:17 帮助过:56人阅读
核心:递归的经典应用,以及文件和目录的基本操作。
= "../fileupload" = "b" copydir(, ( = ( ( !== ( = ( = ."/". = ."/". ( != "." && != ".." ((, (, (, ); copydir核心:copy函数。
= 'a' deldir( = ( ( !== ( = ( = .'/'.( != '.' && != '..' (((( (); deldir核心:注意unlink删除的是带path的file。
= "a" dirsize( = ( ( !== ( = ( = .'/'. ( != '.' && != '..'(( = + ( ( dirsize(); dirsize核心:通过判断$tot在哪里返回,理解递归函数。
http://www.bkjia.com/PHPjc/738553.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/738553.htmlTechArticlephp基础练习--目录遍历: ("content-type:text/html;charset=utf-8" = "./final/factapplication" listdir( = ( ( !== ( = ( = .'/'. ( != '.' != '..' ( ( ."br" ( ); listdir 核心:...