01 Includes Home
Pieces of my Mind
One of the benefits of using PHP is that you can extract common page elements such as the menu and footer, and turn them into server-side includes. Using PHP functions and conditional logic, you can automatically change the page title and indicate the current page in the menu. Generating a random image on the front page also adds interest to the site.