If you need more than just a list of files, the SPL has a DirectoryIterator object: http://www.php.net/manual/en/function.directoryiterator-construct.php
With it you can do more than just list files, you can also get information about their properties, ownership, permissions, whether or not php can write or read from the file etc.