PHP Tutorial: When you run a database-driven website, it makes sense to generate pages on the fly. PHP, MySQL, and Apache let you do just that. But they don't make it pretty. How many times have you had to create a URL that looks like this: http://schmoop.com/snurk.php