Links:

Strings, files, includes

  1. In a new folder, take your requirements document -- the one souped up with CSS to look like your web project -- and split it into at least two parts: index.php (the main page, the one you want me to see), plus header.php, footer.php, leftColumn.php, rightcolumn.php (things that you expect to be the same on all or most of the pages of your site). In this example page you're reading right now, I split off footer, because that never changes from page to page. In my actual project, I'd split off the header, the footer, and the right column.

    Include them into the main page. Name your main page index.php, on this and all subsequent homeworks.