$yourvar="some text";
$h=fopen("yourwordlist.db", "r");
$cont=fread($h, filesize("yourwordlist.db"));
fclose($h);
$line=explode("\n", $cont);
for($i=0; $i<count($line); $i++){
if(eregi("$line[$i]*", $yourvar)){
print $line[$i]."is found<br>";
}
}
will this help?