First CGI Script

by Hiroshi on 10-10-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>";

Related Posts

Share it!
  • Print
  • Digg
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • email
  • LinkedIn
  • Live
  • MySpace
  • Netvibes
  • PDF
  • Reddit
  • Slashdot
  • StumbleUpon
  • Technorati
  • Tumblr
  • Twitter
  • Yahoo! Bookmarks
  • Yahoo! Buzz
  • Add to favorites
  • Share/Bookmark

2 Responses to “First CGI Script”

  1. Oct 31, 2007
    zack Says:

    Great tutorial.

    ReplyReply
  2. Oct 31, 2007
    sara Says:

    Good Site! Keep Doing That!

    ReplyReply

Post a Comment

Comment will appear here after approval, Thanks for patience