pdf.css
Google


   


You are here: CodeIdol > Java > JavaServer Pages > page: 11 12 13 14 15 16 17 18 19 20 21


The earliest CGIs were written in a language called C. A sample CGI written in C is
shown in

Listing 1.1
. It generates a Web page that contains the current time and date.
Listing 1.1 A sample CGI in C
#include <stdio.h>
#include <time.h>

int main(int argc, char **argv) {
time_t now;

printf("<HTML>\n");
printf("<BODY>\n");

time(&now);
printf("The time is now: %s", ctime(&now));

printf("</BODY>\n");
printf("</HTML>\n");

exit(0);
}
You are here: CodeIdol > Java > JavaServer Pages > page: 11 12 13 14 15 16 17 18 19 20 21


ADBRITE ads links
   
Related tags







Popular Categories
Unix books and guides

AJAX popular information
C# language guides
Windows books and cookbooks

.......








Business Key Top Sites

be number one
rate your site




    С 2009 года мы стали переводить структура сайта на различные языки. Сайт теперь будет содержать книги не только на английском языке, но также и на других европейских языках, в том числе и на Русском языке.

    Русский Polski Francais Deutsch
    support sitemap terms

© CodeIdol Labs, 2007 - 2009