Assignments, Projects and Exams
CSIT2100-PHP for Spring 2010


TIP: Displaying PHP Errors and Notices

General Notes - for this course I want all of your php web pages to be in a folder named php, which is inside of your public_html folder on trinity. No filename should contain spaces (rename any files that do). Your homework files must be named EXACTLY as I specify below (same upper/lower case and no extra symbols).

hw15 -- Deadline: Friday, May 14 [10 points]
The assignment involves doing Database Queries with mysql and PHP. Instructions will be given in class but you can download a starting point for your PHP at hw15.
hw14 -- Deadline: Tuesday, May 4 [10 points]
The assignment involves use of Cookies from chapter 7. You can download the specifications for hw14.
hw13 -- Deadline: Friday, April 30 [10 points]
The assignment involves use of file I/O, regular expressions, and more from chapter 6. You can download the specifications for hw13.
hw12 -- Deadline: Monday, April 19 [10 points]
The assignment involves use of associative arrays described in chapter 5. You can download the specifications for hw12.
hw11 -- Deadline: Monday, April 12 [10 points]
The assignment involves use of sequential arrays described in chapter 5. You can download the specifications for hw11.
EXAM #2 -- Date: Thurs, April 8
Multiple choice exam covering chapters 3-4.
hw10 -- Deadline: Friday, April 2 [10 points]
Ideas were given in class for this assignment, an elementary arithmetic problem generator. You can download more detailed specifications for hw10.
hw09 -- Deadline: Friday, March 12 [10 points]
Specs were given in class for a page that generates a checkerboard square based on textbox form elements at the top for max width, number of rows, number of columns, and the two alternating colors. Set default values to 600, 8, 8, red, and black, respectively. If number of rows or columns are less than 1, then set them to 1. Textbox values that were entered should continue to remain after the submit button is pressed. The checkerboard square should be a centered table with a border of 1, beneath the form part.
hw08 -- Deadline: Tuesday, March 9 [10 points]
Download specifications for hw08.
hw07 -- Deadline: Thursday, March 4 [10 points]
Download specifications for hw07.
EXAM #1 -- Date: Tues, March 2 [25 points]
Multiple choice exam covering chapters 1-2.
hw06b -- Deadline: Thurs noon, Feb 25 [10 points]
Using PHP functions from Chapter 2, update bmi.php, hw05a.php, and hw05b.php files (and test them using the hw06.html forms) with the following changes:
hw06 -- Deadline: Tues 9am, Feb 23 [10 points]
Create an HTML form page called hw06.html which has three separate forms (separated by <hr/> horizontal lines) for the BMI Calculator (bmi.php), the Volume of a Cylinder Calculator (hw05a.php), and the Grade Average Calculator (hw05b.php). Use text box inputs for everything except for the BMI height entries. For that, enter the feet and inches as separate drop down selection boxes.
hw05 -- Deadline: Tues 9am, Feb 16 [10 points]
Do the hands on excercises 1a and 1b on page 38. Call your files hw05a.php and hw05b.php. Put an appropriate title, heading, and subheading, consistent with what you did in hw04 (that is, include your name in the subheading). Put links in home.html for homework 5a and 5b, consistent with other homework links. For simplicity, just assign the variables ($r, $h, $grade1, etc) within your script to the specific values listed on page 38, without getting values from the URL (that is, you will not use $_GET for this).
hw04 -- Started in-class Feb 11 to be finished by Tues, 9am, Feb 16 [10 points]
Create file named bmi.php in your php directory based on the MS Word Doc specifications. Add a link to this web page in your home.html page. The link should identify homework 4, consistent with other homework links (although the file is named bmi.php). The link's href URL must give sample values for all variables that your PHP file is getting (or else you see error messages) in the generated web page.
hw03 -- Deadline: Feb 4 [10 points]
Create file named hw03.php for the hands-on excercise 5 on page 17, with the following additional specifications:
hw02 -- Deadline: Feb 4 [10 points]
Create file named hw02.php and enter EXACTLY what is in chapter 1 exercise 4. Fix the errors one by one. Create an MS Word doc file (with your name, date, and course at the top) and number each of the errors you fixed (one by one) and paste the error message that you before you fixed it. NOTE: only fix the line and the problem that each error message refers to. When finished, save, close, and then submit your Word doc. Also, modify your hw02.php file so that it says somewhere on it that the errors have now been fixed and change all of the <br> to <br/> tags so that they are self-closing (the new XHTML standard).
hw01 -- Deadline: Feb 3 [5 points]
Create file named hw01.php for the hands-on excercise 2 on page 16.
hw00 -- Deadline: Feb 2 [10 points]
Create a personal page named home.html in your php directory that shows off a variety of things covered in the core slides on XHTML and CSS. With each new homework, add a link to this class home page (hw01, hw02, etc) and test that it works.


Return to the course homepage
Return to the instructor's main homepage