How would I scan a directory for a specific line of text and list all matching files with php?
Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I actually wrote a function for this a few days ago…
Here’s the base function that scans each file…
Not the most advanced way of doing it, my function is much longer but it also uses all functions from my various other classes, this is basically what it does though.