"; $returnval = ""; # get patches from host $p_from_host = snmprealwalk($host,$community,$object); snmp_set_quick_print(1); #get patches from file on webserver $p_from_file = file('http://gsdfjghfj/chkfile.txt'); #echo "Matches$newline"; #echo ""; foreach($p_from_file as $key => $value) { echo $value; foreach($p_from_host as $key => $value2) { $valueclean=rtrim($value); $value2clean=rtrim($value2, '"'); $value3clean=ltrim($value2clean, '"'); $result = strpos($value3clean, $valueclean); if ($result == false) { $returnval = "NONONO "; } else { $returnval = "found"; echo "found"; } } echo $returnval; echo $newline; $returnval=" "; } ?>