Week 14: PHP for Repeating Web Elements

Intro to this Week

This week is an introduction to PHP. In the tutorial, we are using PHP to repeat common web elements on multiple HTML pages. There is more coding than usual in this one, but I’ll walk you through the steps. MADT-322 (at Chico State) teaches you a lot more about PHP if you continue with that course (though it is only offered in the Spring).

This is our last week of new material. Next week will be set aside for you to work on your project and to study for the final exam. I have posted the Final Exam Study Guide and will set aside time in class next week to answer any questions you have about it.

This Week’s Work

1. Setup for Dreamweaver Work

Download the demo files php-intro.zip. Decompress and put the contents of the resulting folder into your week14 folder.
week14 folder

2. PHP Video Tutorial

With this tutorial, there is a PDF of slides that walks you through the steps. I use it in the tutorial to keep us on track; you should use it later when creating Project 5.

3. Lab 7

I’ve posted Lab 7 to the website for you to start once you’ve finished with Project 4

4. Final Exam Study Guide

The Final Exam Study Guide is now posted online

Lab Time/Homework

  • Project 4
  • Lab 7 is the last lab assignment
  • Project 5 is now available on the website and is a small website using this PHP technique. You should start on it as soon as you complete Project 4.