Riverwatcher Active Content Environment

RACE FAQ

Frequently Asked Questions 19 May 2003

  • What does RACE stand for?
  • What is RACE?
  • How can it help me?
  • How much does it cost?
  • What web servers does RACE work with?
  • Are there plans to support Windows NT or 2000?
  • How does it compare with CGI, PHP, COLDFUSION or ASP?
  • Does RACE work with JavaScript?
  • What are some examples of sites that use RACE?
  • What database systems does RACE support?


  • Q. What does RACE stand for?

    RACE stands for Riverwatcher Active Content Environment.


    Q. What is RACE?

    It is an efficient high-performance extension to the Apache web server that allows you to add dynamic capabilities such as form processing, database connectivity and dynamic content generation to your web site. RACE stands for Riverwatcher Active Content Environment.


    Q. How can it help me?

    RACE is very easy to use. Unlike most server-side scripting environments, it is designed for HTML scripters. With RACE, web developers now have an efficient and cost effective way to develop and deploy the next generation of dynamic web sites.


    Q. How much does it cost?

    RACE is free. Commercial support via email and phone can be purchased. Please check out the support plans on the www.racekit.net site.


    Q. What web servers does RACE work with?

    RACE currently works with all Apache servers (versions 1.3.x) for UNIX platforms including Solaris, LINUX, BSD and Mac OS X.


    Q. Are there plans to support Windows NT or 2000?

    Yes.


    Q. How does it compare with CGI, PHP, COLDFUSION or ASP?

    A key difference between RACE and all other server-side scripting environments is that the RACE execution context is the entire RACE page. In other server-side scripting languages, the execution context exists within a script block.

    In ASP, such a script block is denoted by <% and %> and in PHP <?php and ?>. Because RACE is a true template language, it does not require a separate "output" statement to send data back to the browser.

    For example, the following ASP script connects to a database and outputs the results to a browser:
    <%
    Set OBJdbConnection =Server.CreateObject("ADODB.Connection")
    OBJdbConnection.Open "catalog"
    SQLQuery = "Select id, description FROM Models"
    Set RSModels = OBJdbConnection.Execute(SQLQuery)
    Do Until rsModels.EOF
    Response.Write (rsModels("ID") & "
    \n" & rsModels("Description") & "
    \n")
    rsModels.MoveNext
    Loop
    %>

    The same code in PHP:
    <?php
    $db = mysql_connect("localhost", "root");
    mysql_select_db("catalog",$db);
    $result = mysql_query("SELECT id, description FROM Models",$db);
    printf("%s
    \n", mysql_result($result,0,"id"));
    printf("%s
    \n", mysql_result($result,0,"description"));
    ?>
    The same code in ColdFusion looks like this:
    <cfquery name="rsModels" datasource="catalog ">
    select id, description from Models
    </cfquery>
    <cfoutput query=" rsModels ">#id#
    \n#description#
    \n</cfoutput>
    To do the same in RACE:
    <database dsn="catalog" query="select id, description from Models"> <#id>
    <#description>
    </database>
    This tighter level of integration of RACE scripts and HTML data not only results in shorter code, but also makes RACE scripts more intuitive to conceptualize and easier to program.


    Q. Does RACE work with JavaScript?

    Yes. RACE code is executed on the server side, whereas JavaScript is executed on the browser side. You can mix RACE code with JavaScript freely in your source. Just remeber that by the time the source reaches the client browser, all the RACE code has already been parsed by the server and the client browser will never see it.


    Q. What are some examples of sites that use RACE?

    There are quite few sites that use RACE. Some of them have been running for over four years. You can check out RACE in action in the following sites: www.elementsofyou.com, www.usgpindy.net, www.hysterusa.com and www.openingbands.com.


    Q. What database systems does RACE support?

    RACE has native support for MySQL, mSQL, and PostgreSQL. RACE also supports iODBC, so any ODBC compliant databases such as Oracle, SyBase, etc. are also supported.


    Q. How do I find the id of an auto_increment column when using a MySQL database?

    Since RACE supports multiple queries in a database tag, you can insert the line of data, then select the last auto_increment ID back from the database:

    <database name="dbfoo" query="INSERT INTO foo (auto,text) VALUES(NULL,'text'); SELECT LAST_INSERT_ID() as LASTID from foo">
    <define var="$lastid"><#LASTID></define>
    </database>


    Current Version

    Current Stable Build
    3.2.10b0

    Previous Stable Build
    3.2.8b2

    Log In

    not logged in. (who's online? )
    log in or register free!

    Feature RACE Site

    US Grand Prix
    The US Grand Prix has used RACE for the past 2 years for their volunteer registration.

    RACE Survey

    We want to hear from you!
    If you have a minute, take a look at our RACE survey.

     
    Copyright 2009 Riverwatcher, Inc. Hosting by Riverwatcher Studios