#!/usr/bin/ruby

require "fcgi"

count = 0
# connect to database, other one time things...

FCGI.each do |fcgi|
	$stdin = fcgi.in # this seems to be necessary to handle POST submissions
	# do the work ...
	count += 1
	print "Content-type:  text/html\n\n"
	print "This is execution # #{count}!<br>\n"
end


> -----Original Message-----
> From: Jilani Khaldi [mailto:jilanik / tin.it]
> Sent: Thursday, February 01, 2001 11:25 AM
> To: ruby-talk ML
> Subject: [ruby-talk:10231] mod_fastcgi with Ruby
> 
> 
> > mod_fastcgi with ruby is stable and IMHO a much better architecture
> > than mod_ruby or mod_perl.
> Could you illustrate a little example on how to use it with Ruby?
> Thanks.
> 
> Jilani
>