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. 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? Link to comment https://forums.phpfreaks.com/topic/11500-ereg-with-files/#findComment-43353 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.