PDA

View Full Version : Basic PHP Question


TutorialNinjas
05-20-2007, 12:39 AM
Is there a way i can have it open up a file and search for a string?

calorie
05-20-2007, 01:08 AM
Idea: place file into string using file_get_contents (http://www.php.net/manual/en/function.file-get-contents.php) and then use preg_match (http://www.php.net/manual/en/function.preg-match.php) to search for substring.