First CGI Script

by on October 10th, 2007

The Common Gateway Interface (CGI) is a standard protocol for interfacing external application software with an information server, commonly a web server. Lets write our first simple CGI script.

#!/usr/bin/perl -wt
print "Content-type: text/html\n\n";
print "<h2>Some text to display here</h2>";
Share

2 Reviews

  1. sara says:

    Good Site! Keep Doing That!

  2. zack says:

    Great tutorial.