find(strtolower($keyword)); $content=''; foreach($results as $entry) $content.="
Total $count pages matching keyword ".htmlentities($keyword).".\n
No page matches ".htmlentities($keyword).".
"; } else $content="Please specify a keyword to search for.
"; $page=file_get_contents(dirname(__FILE__).'/index.html'); $page=preg_replace('/.*/ms',$content,$page); if($keyword!=='') $page=preg_replace('/