![[CGI & SSI Examples]](examples.gif)
CGI's and SSI's programs can to written using Perl, C, C++, and in theory almost any compiled or scripted programming language. The examples here will focus only on Perl and C programs. SSI's may also include simple in-line commands.
A problem with CGI and SSI programs is that they run on the server computer, thus using the server computers CPU and memory resources. It not carefully written, they can also compromise the computer system security (see Guidelines for Good CGI and SSI Programming). Because of this, these programs, must be carefully written, they should be short, and they should minimize their impact on system resources. If possible, more demanding programs should be written in Java, which run on the clients computer. A Java program, once uploaded to the client no longer affects the servers system performance.