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 Link to comment https://forums.phpfreaks.com/topic/95731-is-there-a-quick-and-easy-way-i-hope/ Share on other sites More sharing options...
phpSensei Posted March 12, 2008 Share Posted March 12, 2008 try preg_match(); Link to comment https://forums.phpfreaks.com/topic/95731-is-there-a-quick-and-easy-way-i-hope/#findComment-490136 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 Link to comment https://forums.phpfreaks.com/topic/95731-is-there-a-quick-and-easy-way-i-hope/#findComment-490156 Share on other sites More sharing options...
phpSensei Posted March 12, 2008 Share Posted March 12, 2008 Link to comment https://forums.phpfreaks.com/topic/95731-is-there-a-quick-and-easy-way-i-hope/#findComment-490158 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.