Challenges

Challenges

  1. Improve the quiz program in one of the ways I've suggested throughout the chapter. Add the ability to e-mail test results, put in some analysis of test scores, improve the quiz editing page, or try something of your own.

  2. A couple of values in this system should be global among each of the PHP programs. The root directory of the files and the administrative password are obvious candidates. Write a program that stores these values in an .ini file and modify the quiz programs to get these values from that file when needed.

  3. Create a source code viewer. Given a filename, the program should read in the file and convert each instance of < into &lt;, then save this new file to another name. This will allow you to show your source code to others.

  4. Create a simple guest book. Let the user enter information into a form, and when she clicks the Submit button, add her comment to the bottom of the page. You can use one or two files for this.