Chapter 29. cgi scripts
Now that nearly everyone has a Web server installed on their PCs, it seemed appropriate that a chapter on cgi scripts should be included as part of this shell programming book.
In this chapter we will cover:
basic cgi scripts;
using Server Side Includes;
the get method;
the post method;
creating an interactive script; and
a cgi script that automatically reloads a Web page.
You do not need to be on a network to run a Web server; you can run it from your local host. However, here I will assume you have a Web server installed (apache, Cern etc.) and a browser to display the Web pages (Netscape, Internet Explorer, etc.). In addition, the server has been cgi-enabled. By default this is disabled; just comment out the required lines. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access