Hi, I need to work on a tiny little program, and was wondering if anyone could help me.
I need just a simple program that searches a phrase (inputted by the user in a form) from all the php files in the directory. Let's say the user inputed "How to Log on to XXX", then my programs needs to search this phrase in all of the php files that are in the directory. My problem is I don't know how to open all of the files in the directory, since I don't know the name of the files. These php files keep updating, and the names would be KB_XXXXXX.php, where XXXXXX is the ID of that particular file. I need to open ALL of these files and search the phrase in it. Any body have any idea how I can open these files? I am probably going to be using RE to search, so maybe I can use fread() to store a file in a variable and search one file at a time. Please Advice. Thanks Kelvin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php