Project: Web-based user administration
In this chapter's project, we will add some user administration facilities to the web administration program that we created in the last chapter. We will therefore discuss the changes to the program and will not address those functions we have already discussed in the previous chapter.
As mentioned in the previous chapter, we should get the same results from this program regardless of whether we call it through CGI or with PHP. The output is always a HTML file. Using PHP has the advantage of allowing us to test the program from the command-line where CGI requires hard-wiring of values in the code. It is only after the program is proven locally that one should move it to a test server.
For reasons of illustration and portability, we will proceed in this project as if we called the program through PHP. This allows us to list the new options in a way that should be easier to follow.
New options in the code
The purpose of this project is to add certain user...