Total members 11889 |It is currently Fri Mar 29, 2024 2:20 pm Login / Join Codemiles

Java

C/C++

PHP

C#

HTML

CSS

ASP

Javascript

JQuery

AJAX

XSD

Python

Matlab

R Scripts

Weka





This topic is about providing a solution to the problem of dynamic content has been available since the earliest days of the Web. Rather than reading the data from a file, the server can run a program in order to generate the data.

-The mechanism by which the server and the HTML-generating program communicate is called CGI (common gateway interface).

-CGI is a program is being run behind the scenes enables the content to be dynamic.


-The earliest CGIs were written in a language called C. A sample CGI written in C is shown in the following list. It generates a Web page that contains the current time and date.


cpp code
#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);
}




_________________
Please recommend my post if you found it helpful


Author:
Beginner
User avatar Posts: 109
Have thanks: 5 time
Post new topic Reply to topic  [ 1 post ] 

  Related Posts  to : Basic daynamic page generation using CGIs programs
 Calling other programs from java     -  
 How to Write Small,Useful and Efficient Programs     -  
 About Report Generation     -  
 Image Scroller-scrollbar-LINE_UP,LINE_DOWN-PAGE-UP-PAGE-DOWN     -  
 Image Files Generation     -  
 Basic Pointers     -  
 Some basic tips for SEO     -  
 dynamic crystal report generation     -  
 Transforming XML into Basic HTML     -  
 Java basic tutorials.doc     -  









Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2011
mileX v1.0 designed by codemiles team
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com