Exercises

  1. Create a script that prints out the current status of the system. What’s in the report is left to your imagination, but some items it could include are the current date, the amount of disk space free on each file system, how long the system has been up, and so on.

  2. Write a CGI script for debugging. This script prints out the values of all the form data and environment variables supplied to the script.

  3. Write a form that allows a user to register his product. It should take as input the name, address, and phone number of the user and store it so that it can be used later by the marketing department for a mailing list.

  4. One problem that plagues system administrators is the number of users who ask to have a file restored. Create a CGI system to automate this. Include a form that allows the user to submit a request (please restore this file) and a report form for the system administrator (here’s the files you’ve got to restore). You can embellish this with additional reports and forms as needed.

  5. Create an online testing system. This system would ask the user a series of questions, score the results (letting the user know where he went wrong), and record how well the user did.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset