时间:2021-07-01 10:21:17 帮助过:30人阅读
php header('Content-type:text/html;charset=utf8'); echo "Loading time:".date('Y-m-d H:i:s'); sleep(5); echo "
"; echo "End time:".date('Y-m-d H:i:s'); // 多级目录新建 function createFolder($path){ if(!file_exists($path)){ createFolder(dirname($path)); mkdir($path, 0777); } } createFolder("/Library/WebServer/Documents/aa/bb/cc"); ?>
php使用递归创建多级目录
http://www.bkjia.com/PHPjc/1053803.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/1053803.htmlTechArticlephp使用递归创建多级目录,php递归 ? php header ('Content-type:text/html;charset=utf8' ); echo "Loading time:". date ('Y-m-d H:i:s' ); sleep (5 ); echo "br" ; echo "End...