I'm trying to build a sitemap for my site and I was considering using some kind of a loop to run through all the files on my server to do it.
The problem is I have a few folders and other files in that directory as well, but I dont want them echo'ed out.
Is there a way to echo out files that have just a .php extension?