O'Reilly logo

Platinum Edition Using XHTML™, XML, and Java™ 2 by Andrew H. Watt, Mike Morgan, Jim O'Donnell, Eric Ladd

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

CGI Libraries

When you talk about CGI libraries, two possibilities exist: First, you can use libraries of code you develop and want to reuse in other projects. Second, you can avail yourself of publicly available libraries of programs, routines, and information.

Personal Libraries

If you follow the advice given earlier in this chapter in the "Planning Your Script" section about writing your code in a black box fashion, you'll soon discover that you're building a library of routines that you'll use over and over. After you determine how to parse out URL-encoded data, for instance, you don't need to do it again. And when you have a basic main() function written, it will probably serve for every CGI program you ever write. This is also true for ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required