Will My Favorite Language Work for CGI?

One big question most programmers face when they start to learn about CGI is whether their favorite programming language will work for writing CGI scripts. If that language is Perl or the Bourne shell, the answer is a resounding yes. However, the truth is that many languages are suitable for use in writing CGI programs; they just have to meet a few simple criteria.

These criteria are easy to deduce when you think about how CGI programs work. First, let’s look at how CGI programs are called. CGI programs are invoked by the Web server. The key here is that the server must be able to call the program by name alone. In other words, if your program must be called by passing the program name as an argument to ...

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.