Hour 17. Introduction to CGI

There's no question in anyone's mind at all that the explosion in popularity of the Internet is mostly due to the World Wide Web. Since the introduction of the first graphical Web browser in 1993, the Internet has expanded at a phenomenal rate—with the number of hosts doubling every 20 months around 1993 to doubling every 12 months currently. The growth of private networks—intranets—has increased even more rapidly.

The content of the Web has become more sophisticated since 1993, and the users of the Web expect each Web page to do more than simply show static (unchanging) Web pages. A successful Web site requires dynamic Web pages—Web pages that provide up-to-date information. Keeping complex pages current with rapidly changing content would be almost impossible, so that's where Common Gateway Interface (CGI) comes in.

Note

As a requirement for the next seven hours, you will need some knowledge of Hypertext Markup Language (HTML). If you're unfamiliar with HTML, don't despair. It's really not hard to learn, and you won't need much to complete this book.

HTML is a markup language commonly used for constructing Web pages. HTML consists of plain text, with formatting codes embedded in the text to indicate how a Web browser should display the text. For example, the text HTML is <I>not</I> hard to learn. is normal text except for the <I></I> markers. They are called tags and describe what kinds of formatting should be used to display the text. In this case, the word not should be displayed in italic by a Web browser if it can. (Remember, not all browsers are graphical.)

A full lesson in HTML is well beyond the scope of this book. It's not difficult; there's just a lot of material to cover. The specification for HTML is maintained by the World Wide Web Consortium (W3C) at http://www.w3c.org, and you can find some nice tutorials there as well. One good book on HTML is Sams Teach Yourself HTML in 24 Hours.


In this hour you will learn

  • The basics of how the Web works

  • What you need to know before writing CGI

  • How to write your first CGI program

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

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