Hello there friends.
I posted a topic at the beginners section ( http://www.freebasic.net/forum/viewtopic.php?p=132493 ) and it seems it wasn't the right section at all.
My inquiry remains the same.
Does anyone has any sample code for a FASTCGI application in Freebasic?
I'm running debian lenny and apache.
It would be greatly appreciated.
Thanks in advance.
-Louis
[REQUEST] FASTCGI and FREEBASIC
Here's the tiny-fcgi example:
Code: Select all
#include "fastcgi/fcgi_stdio.bi"
var count = 0
while FCGI_Accept() >= 0
count += 1
? !"Content-type: text/html\r\n"
? !"\r\n"
? "<title>FastCGI Hello!</title>"
? "<h1>FastCGI Hello!</h1>"
? using "Request number ### running on host <i>&</i>"; count, getenv("SERVER_NAME"));
wend
Re: [REQUEST] FASTCGI and FREEBASIC
Small error in your eample will abort the compile.
change:
? using "Request number ### running on host <i>&</i>"; count, getenv("SERVER_NAME"));
to
? using "Request number ### running on host <i>&</i>"; count, getenv("SERVER_NAME");
change:
? using "Request number ### running on host <i>&</i>"; count, getenv("SERVER_NAME"));
to
? using "Request number ### running on host <i>&</i>"; count, getenv("SERVER_NAME");