The download package contains a demo and all the source code.
Here are some key features of "PHP File Tree":
· Produces valid, semantic XHTML
· Fully customizeable with CSS
· Ability to style file icons based on the extension
· Easy to implement...one PHP include and a function call produces the entire list