# Parse Document Tree

**URL:** <https://forum.kirupa.com/t/parse-document-tree/126407>\
**Category:** Uncategorized\
**Created:** [October 22, 2004, 10:46pm UTC](https://forum.kirupa.com/t/parse-document-tree/126407 "2004-10-22T22:46:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tajmahal](https://avatars.discourse-cdn.com/v4/letter/t/cdc98d/32.png) [@tajmahal](https://forum.kirupa.com/u/tajmahal)\
**Post date:** [October 22, 2004, 10:46pm UTC](https://forum.kirupa.com/t/parse-document-tree/126407/1 "2004-10-22T22:46:53Z")

</div>

I was wondering how to use readdir to parse the document tree and list all files in the .php’s directory. I was trying to get the results to be listed in an array, with each file’s full path shown. Any ideas?
