下面是一个sample:
#include <fcgi_stdio.h>
#include <stdlib.h>
#include <unistd.h>
int main ()
{
int counter=0;
while (FCGI_Accept() >= 0)
{
printf("Content-type: text/html/n/n");
printf("counter is %d.<br>", counter++);
}
return 0;
}
#include <stdlib.h>
#include <unistd.h>
int main ()
{
int counter=0;
while (FCGI_Accept() >= 0)
{
printf("Content-type: text/html/n/n");
printf("counter is %d.<br>", counter++);
}
return 0;
}