Quote Originally Posted by Chris2009 View Post
so, forgive me if im asking dumb question btw wud this work:
PHP Code: 
    foreach($hosts as $host)  
    if(
strpos('[code]'.$host.'[/code]')) $keyword[] = $host; else if(strpos($file['content'],$host)) $keyword[] = $host
it should work?
Well, theres no need to check for string with codes

Try this:
PHP Code: 
 foreach($hosts as $host) if(strpos($file['content'], $host) !== false$keyword[] = $host