Version 1 of CGI By Hand

Updated 2004-11-05 17:33:35

Ro 2004-11-05 (Nov 5th, 2004)

Lovingly crafted simplicity.

CGI can get complex when you include library after library, so let's do it by hand:

  #!/usr/bin/tclsh

  puts "Content-type: text/plain\n"

  puts eogieogeig

The most basic cgi, all it does is display some text, not even html! But hey, if you're this far, your server is set up, your permissions on your cgi file are correct, and that's half the battle.

  #!/usr/bin/tclsh

  puts "Content-type: text/html\n"

  puts {

  <html>
  <head>
  <title>wonderz</title>
  </head>

  <body>
  aloha!
  </body>

  </html>

  }