find(strtolower($keyword)); $content=''; foreach($results as $entry) $content.="
  • link}\">{$entry->title}
  • \n"; if($content!=='') { $count=count($results); $content="

    Total $count pages matching keyword ".htmlentities($keyword).".\n

      \n$content
    \n"; } else $content="

    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('/