4 * FastCGI example program using fcgiapp library
7 * Copyright (c) 1996 Open Market, Inc.
9 * See the file "LICENSE.TERMS" for information on usage and redistribution
10 * of this file, and for a DISCLAIMER OF ALL WARRANTIES.
15 static const char rcsid[] = "$Id: tiny-fcgi2.c,v 1.2 1999/01/30 22:27:37 roberts Exp $";
18 #if defined HAVE_UNISTD_H || defined __linux__
30 FCGX_Stream *in, *out, *err;
33 while(FCGX_Accept(&in, &out, &err, &envp) >= 0)
35 "Content-type: text/html\r\n"
37 "<title>FastCGI Hello! (C, fcgiapp library)</title>"
38 "<h1>FastCGI Hello! (C, fcgiapp library)</h1>"
39 "Request number %d running on host <i>%s</i> "
41 ++count, FCGX_GetParam("SERVER_NAME", envp), getpid());