Over on Evolt.org this morning, there's a new article that talks about doing something that Google does all the time with it's cached pages. How many times have you been looking through a result on Google.com and been unable to find where it actaully references the word(s) you were looking for. So, you click on the "cached" link and it drops you to a page that's color-coded to show you where the words actually are. This article from Evolt shows you how to do that with your pages, using the output buffering functions already built into PHP. It combines those with CSS and a "span" tag to do the actual highlighting. It's a nice simple little script really, but it could get a bit slower on larger documents.




