duilio foschi het geskryf: > how do I build a minimal 'hello world' CGI application under Free Pascal ?
Can't get simpler than this: --------------------- program cgitest; {$mode objfpc}{$H+} uses Classes; begin writeln('Content-Type:text/html',#10#13); writeln('<html>'); writeln('<head><title>FPC Test</title></head>'); writeln('<body>Hello World</body>'); writeln('</html>'); end. ----------------------- Output is shown in the attached screenshot. Obviously you need a webserver to correctly view the results. Simply install Apache and enable CGI support (if not enabled by default). As you can see from the sample application, CGI apps are simply glorified console applications. Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://opensoft.homeip.net/fpgui/
<<inline: testcgi.png>>
_______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal