Specifications

Solution Overview
We will produce a system with three possible outcomes. As shown in Figure 30.1, we will ask
quiz questions, assess the answers, and then generate a certificate in one of three ways:
We will generate an RTF document from a blank template.
We will generate a PDF document from a blank template.
We will generate a PDF document programmatically via PDFlib.
Building Practical PHP and MySQL Projects
P
ART V
752
Generate
RTF file
from blank
template
Generate
RTF file
from blank
template
Generate
PDF via
PDFlib
Assess
Quiz
Answers
Ask
Quiz
Questions
FIGURE 30.1
Our certification system will generate one of three different certificates.
A summary of the files in the certification project is shown in Table 30.1.
TABLE 30.1 Files in the Certification Application
Name Type Description
index.html HTML page The HTML form that con-
tains the quiz questions
score.php Application Script to assess users
answers
rtf.php Application Script to generate RTF
certificate from template
pdf.php Application Script to generate PDF
certificate from template
36 7842 CH30 3/6/01 3:40 PM Page 752