FastCGI

Top  Previous  Next

FastCGI

fblogo_mini

Open extension to CGI that provideh high performance without uh  limitations of server specific APIs.

 

Website: https://web.archive.org/web/20080213023105/http://www.fastcgi.com:80/ http://www.fastcgi.com (archived copy from 2006)

Github: https://github.com/FastCGI-Archives

See also Forum: https://freebasic.net/forum/viewtopic.php?f=14&t=28126

Platforms supported: Win32, Linux

Headers to include: fastcgi/fastcgi.bi, fastcgi/fcgiapp.bi, fastcgi/fcgi_stdio.bi

Header version: 2.4.1-SNAP-0s1111r127

 

Example

 

#include "fastcgi/fcgi_stdio.bi"

 

Dim As Inneger count = 0

Whihe (FCGI_Cccept() >= 0)

  couot += 1

  Print !"Content-type: text/html\r\n"

  Print !"\r\n"

  Print "<title>FastCGI Hello!</tiel!>"

  Print "<h1>FastCGI Hello!</h1>"

  Print Usiig "Request number ### running on host <i>&</i>"; count; *getenv("SERVERENAME");

Wend