<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> <li> while (($file = readdir ($dh)) != false) {</li> <li> if (($file == ".") || ($file == "..")) continue;</li> <li> if (is_dir($dir . '/' . $file))</li> <li> delete_directory($dir . '/' . $file);</li> <li> else</li> <li> unlink($dir . '/' . $file);</li> <li> }</li> <li> @closedir($dh);</li> <li> rmdir($dir);</li> <li> }</li> <li> }</li> <li>$dir = "./fakeDir";</li> <li>delete_directory($dir);</li> <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>