{{fbdoc item="title" value="FastCGI"}}----
Open extension to CGI that provides high performance without the limitations of server specific APIs.

Website: http://www.fastcgi.com
Platforms supported: ""Win32"", Linux
Headers to include: fastcgi/fastcgi.bi, fastcgi/fcgiapp.bi, fastcgi/fcgi_stdio.bi
Header version: 2.4.1-SNAP-0311112127

{{fbdoc item="ex"}}
{{fbdoc item="filename" value="examples/manual/libraries/fastcgi.bas"}}%%(freebasic)
#include "fastcgi/fcgi_stdio.bi"

dim as integer count = 0
while (FCGI_Accept() >= 0)
	count += 1
	print !"Content-type: text/html\r\n"
	print !"\r\n"
	print "<title>FastCGI Hello!</title>"
	print "<h1>FastCGI Hello!</h1>"
	print using "Request number ### running on host <i>&</i>"; count; *getenv("SERVER_NAME");
wend
%%

{{fbdoc item="back" value="ExtLibTOC|External Library Table of Contents"}}