CGI Script Portability

CGI programmers face two portability issues: platform independence and server independence. Platform independence is the capability of the code to run without modification on a hardware platform or operating system different from the one for which it was written. Server independence is the capability of the code to run without modification on another server using the same operating system.

Platform Independence

The best way to keep your CGI script portable is to use a commonly available language and avoid platform-specific code. It sounds simple, but in practice, this means using either C or Perl and not doing anything much beyond formatting text and outputting graphics.

This leaves Visual Basic, AppleScript, and UNIX shell ...

Get Platinum Edition Using XHTML™, XML, and Java™ 2 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.