Looking for a cgi/php script help!

allright, ima try to explain this the best i can, i need a cgi/php script or somthin for my site, and it to be a search script, but one that searches a text file and heres an example on how it can searces it...