It makes it a HELL of a lot easier to help with scripting problems if you post the code that is giving you trouble! strstr() should work. I have no idea why it isn't, of course, because I have no idea what you are tring to do with it.
In this example I use stristr() to make the search case insensitve, but it works just the sam with strstr. Give this a try:
<?php
//build the search array
$search=array("khbibioub","kjbiubiub");
//import the file into a variable named $file
$file="
this line contains info
abcdef abecde
khbibioub
kjbiubiub
jhbviyubiub
more info for the followin data
ugvuiyviyv
uiybiubiub
iuybiubiub
etc
";
//parse out the lines of the file
$lines=explode(">",$file);
//go through the lines one at a time
foreach($lines as $line){
//go through each search word
foreach($search as $word){
//check for a match against that word
if(stristr($line, $word)){
//print the line if a match exists
echo $line."<br>";
//do not check for duplicate matches for this line
break;
}
}
}
?>