<table cellspacing="0" cellpadding="0"><tr><td class="t_f" id="postmessage_65023"> <div class="blockcode"> <div id="code_vFD"><ol><li> <?php function delete_directory($dir) {<li> if ($dh = @opendir($dir)) {<li> while (($file = readdir ($dh)) != false) {<li> if ( ($file == ".") || ($file == "..")) 続行;<li> if (is_dir($dir . '/' . $file))<li> delete_directory($dir . '/' . $file);<li> else<li> unlink($dir . '/' . $file);<li> }<li> @closedir($dh);<li> rmdir($dir);<li> }<li> }<li>$dir = "./fakeDir" ;<li>delete_directory($dir);<li>?></li></ol></div> <em onclick="copycode($('code_vFD'));">复制代码</em> </div> <br> </td></tr></table> <div class="ptg mbm mtn"> php</div> <div id="comment_65023" class="cm"> </div> <div id="post_rate_div_65023"></div> <br><br>