#!/usr/local/bin/pike int main(int argc, array(string) argv) { // listen on localhost port 31337, with a backlog of 128 connections int sock = Public.Web.FCGI.open_socket("127.0.0.1:31337", 128); // create our request object Public.Web.FCGI.FCGI request = Public.Web.FCGI.FCGI(sock); for (i = 1; ; i++) { request->accept(); request->write("Hello world, this is page view #%d\n", i); request->finish(); } return (0); }