I think calavera wants cached pages on the server. These pages can be updated when some script is run.
Well, you can output everything to an .html file using functions like [man]fwrite[/man]. For example, if you have a page for A's, B's, C, etc....
You can do a query for each letter and output to the appropiate file. Is this what you're looking for?