ls

<?php
function ls($curpath)
{
    $dir = dir($curpath);
    echo "<blockquote>";
    while ($file = $dir->read())
    {
        if( $file != "." && $file != ".." )
        {
            echo( "$file<br>" );
        }
    }
    $dir->close();
    echo "</blockquote>";
    return;
} ?>

About the author

Óscar
has doubledaddy super powers, father of Hugo and Nico, husband of Marta, *nix user, Djangonaut and open source passionate.