Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

FI - CGI Wrapper with mSQL database support

24 views
Skip to first unread message

Rasmus Lerdorf

unread,
Sep 2, 1995, 3:00:00 AM9/2/95
to
FI is a kitchen-sink CGI wrapper that lets you perform SQL
queries right from an HTML file. You do not need to write
a single line of C or Perl code to create database enabled
web pages.

FI allows you to use variables and conditional expressions
as well.

You can for example check which browser somebody is using
and output browser-specific HTML code:

<!--getenv HTTP_USER_AGENT-->
<!--ifsubstr $exec_result Mozilla-->
Hey, you are using NetScape!<p>
<!--endif-->

You can perform a simple query and check the results:

<!--sql database select * from table where user='$username'-->

<!--ifless $numentries 1-->
Sorry, that record does not exist<p>
<!--endif exit-->

Welcome <!--$user-->!<p>
You have <!--$index:0--> credits left in your account.<p>

It also has a handy "include" command that lets you include
other HTML files. Essential for large systems that need
header and footer elements.

ie.

<!--include /text/footer.html-->

Online documentation is available at: http://www.io.org/~rasmus

--
Rasmus Lerdorf
ras...@io.org
http://www.io.org/~rasmus

Mark West

unread,
Sep 3, 1995, 3:00:00 AM9/3/95
to
ras...@io.org (Rasmus Lerdorf) wrote:

>ie.

><!--include /text/footer.html-->

This looks very familiar.

-Mark West

Todd Hoff

unread,
Sep 5, 1995, 3:00:00 AM9/5/95
to
ras...@io.org (Rasmus Lerdorf) wrote:

><!--getenv HTTP_USER_AGENT-->
><!--ifsubstr $exec_result Mozilla-->
>Hey, you are using NetScape!<p>
><!--endif-->

Why do people put commands in comments? Since the files are useless
without preprocessing it's a bit of pain with no advantage.


0 new messages