eagleeye678 Posted March 12, 2008 Share Posted March 12, 2008 Hello All, Looking for a quick and easy way of searching a file for a specific word and have a reply "found or not found". I've tried ftrpos and a few others, but can't seem to nail it down. Thanks Much Quote Link to comment Share on other sites More sharing options...
phpSensei Posted March 12, 2008 Share Posted March 12, 2008 try preg_match(); Quote Link to comment Share on other sites More sharing options...
eagleeye678 Posted March 12, 2008 Author Share Posted March 12, 2008 That worked Perfect, I used file_get_contents to open the file then preg_match. Thanks php Sensei Quote Link to comment Share on other sites More sharing options...
phpSensei Posted March 12, 2008 Share Posted March 12, 2008 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.