This would work (yes, the double equal "!==" is real).
if(strpos($openfile[0],$searchstring) !== false)
{
print("Search result $openfile[0]");
}
That would work, or the slower method would be with a regex. i.e.
if(ereg($searchstring,$openfile[0]))
{
print("Search result $openfile[0]");
}
G'luck,
Jack