Workshop

The quiz questions are designed to strengthen the knowledge you gain each hour. The exercises help you build on that knowledge by providing you with the opportunity to apply it to real problems.

Quiz

1: What is the difference between #include and #exec?
2: Why is it sometimes a bad idea to parse all your HTML documents for SSI directives?
3: How do you set a variable using SSI?

Exercises

1: Create an SSI document that sends different data depending on the time of day. Hint: use the DATE_LOCAL environment variable.
2: Create a page that includes data from a command, a CGI script, and a file.

Quiz Answers

A1: The #include directive reads the contents of a file into a page; the #exec directive executes a program and includes its output ...

Get Sams Teach Yourself CGI in 24 Hours, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.