2008/08/16 22:28  { 技术档案 }
<?php
function tree($mulu)
{
    $mydir = dir($mulu);
    echo "<ul>";    
    while($file = $mydir->read())
    {
        if((is_dir("$mulu/$file")) && ($file!==".") && ($file!==".."))
        {
            echo "<li><font color=red>$file</font></li>";
            tree("$mulu/$file");
        }else
        {
            if(($file!==".")&&($file!==".."))
            {
            echo "<li>$file</li>";
            }
        }
        
    }
    echo "</ul>";
    $mydir->close();
}
tree("..");
?>
Trackback Address :: http://blog.1she.com/trackback/209


« Prev : 1 : 2 : 3 : 4 : 5 : 6 : 7 : ... 201 : Next »