okay, here is what I want to do, simple in theory, but not really working to well off the drawing board. My site pulls 99.99% of its info from a database, and is updated constantly. writing a search engine to work with the database has been a major pain not to mention a failure. SO, here is what I want to do. When someone visits a page, it pulls data from the database, of course, and displays an HTML page as the end result. I want to be able to copy this 'end result' page to a specific directory, as an html file. this will allow my indexing engine (which works perfectly with static pages) to index these pages and voila, I have a working search engine for my site. I can't seem to understand how this should be done. I thought about using the COPY() command and $PHP_SELF, but no go. any ideas on how this would work?