JP128 Posted June 8, 2006 Share Posted June 8, 2006 How can I search a file to see if it has a string? I know I need to use ereg($string, $filecontents); but every time I try to search it, it returns false. If someone can help me that would be great. Quote Link to comment https://forums.phpfreaks.com/topic/11500-ereg-with-files/ Share on other sites More sharing options...
zq29 Posted June 8, 2006 Share Posted June 8, 2006 Could you post up your code?Just to point out though, before seeing your code, you are dumping the contents of the file into a variable, and then using that as the haystack in your ereg() right? Quote Link to comment https://forums.phpfreaks.com/topic/11500-ereg-with-files/#findComment-43353 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.