Hi,
I'm currently working on a project that requires me to use PHP to handle and read INI files...I only started learning PHP at the beginning of the week, and I have encountered a problem. I need a way to search a directory full of INI files for a specific string in one of the files, and I'm not sure how to go about this. As far as I know, all of the INI's are going to have to be parsed to be searched...I can handle that, I'm just not sure how to go about the searching itself.
A search of the PHP Manual hasn't offered many hints so far...
I'd be grateful for any ideas and assistance.
Directory / File Searching
Moderator: General Moderators
http://php.net/opendir
use opendir(), then readdir() and in the loop, you can read each file. Anyhow, you can read the comments from other users on the functions, you'll learn a lot from them.
-Nay
use opendir(), then readdir() and in the loop, you can read each file. Anyhow, you can read the comments from other users on the functions, you'll learn a lot from them.
-Nay