MMDT1146 PHP Programming
Week 4
Week 4 General Notes:
Function Notes:
File Includes:
|
Lab 4 This lab is to test your knowledge of being able to use functions, date & time functions, and file includes. Create a subfolder on your web server named "lab4". (This may already be done for you from doing the in class exercises.) Under the subfolder "lab4" that you just created, you will need to create several files. The names are of your choosing. In my example, I called them "lab4.php", "lab4results.php", "utilities.php", and "footer.inc.php". The lab must contain several items. Your resulting output should like similar to this. Title your pages. On the first page: Take your original lab3 form that you did last week and slightly modify it. Add two groups of radio buttons to select ascending or descending sort orders. Create a separate php file: Create a footer page: I named mine "footer.inc.php". Change the date/time format to something different than what we did in class. On the results page : Call your functions that you created. You will need to "require_once("utilities.php");" once in order to call your functions. Print the total number of seconds it took to execute each piece of the exercise. Hint: you will need the microtime(true) function. Include your footer page on both the form page and the results page. Assignment is due 1 week from when it was assigned. 50% penalty if late.
|