Search inside a folder and show it

i’m a noob with php and im looking for a way to find .txt inside a folder called “uploads”. I made a form so the users can upload texts but what i need is to search these texts and show them in a list format. I need a form to search and another to browse the files.


This is a well written intro to the Directory Iterator, they also show how to extend it.

Its worth taking the time to work through the examples even if you are new to OOP.