Dear All,
This is my first post, so please forgive me if there is anything not quite right.
I am using the above code with much success, but I need to be able to search multiple .txt files. I have a cron job that runs a script to make a new text file every day so things don't get too big and are filed nicely, but as the script only searches one file at a time it is not much use.
Is it possible to modify this line:
$lines = file('info2.txt');
to make it search an entire FOLDER of text files, not just one specified text file?
I hope this makes sense.
Many thanks in advance,
Martyn.