I would like to create a php file and have it scan a directory and search for .txt files
Scan for example all .txt files in the / files / folder (and all subdirectories of it)
Each file that it sweeps I need it to try to find within the contents of the file, a keyword, such as "MARIA".
At the end he'd scour all the files, show something like this:
002023.txt - Maria found - Line 1 002023.txt - Maria found - Line 10 565454.txt - Maria found - Line 400 231332.txt - Maria found - Line 100
Can anyone help me?
Thank you