Navigation  without Java Scripts

The WWW Directory

The WWW directory contains the following subdirectories:

Directory Content
[CGI] The \WWW\CGI\Samples sub-directory includes demo projects of WEB applications.

The \WWW\CGI\Test sub-directory includes CgiTest example showing, how to create Prolog applications that can be used as CGI programs, how to receive, examine and decode Web Server's requests, and how to generate dynamic HTML pages.

[ISAPI] The ISAPI directory contains the tools and declarations that simplify development of the ISAPI (Internet Server API) extensions for Microsoft Internet Information Server and the examples of using them.
[INCLUDE] Some include files to use for CGI Scripts and ISAPI extensions
[INETPUB] Target dir of the Programs in the [PROGRAMS] sub-directory, to be copied to the Internet Server directory.
[LIB] Contains a library to support ISAPI
[PROGRAMS] Some example projects: ESTA, Geni, License, Pie.
 

Visual Prolog Examples of WEB Applications

Where to Find Additional Information about Demo Examples and Real-World Visual Prolog CGI Applications?

Visual Prolog Examples of WEB Applications

The [WWW] directory includes two groups of examples:

  1. Demo examples of WEB applications from the <VIP_root>\WWW\INETPUB\CGIsamp sub-directory.
    These CGI examples are created from some of  simple Prolog example programs supplied with Visual Prolog. The examples are shipped with executables. 
    You can run these ready-to-use examples at your local server, or examine and modify the source code of these examples.
          How to run Visual Prolog WEB demo examples?
  2. CgiTest and other examples from the [WWW] directory that are supplied in the form of projects without executable files. You need to build a project first and then run an example at your server.
         How to run  WEB Examples that are supplied in the form of projects?


How to Run Visual Prolog WEB Demo Examples from the CGIsamp Sub-directory?

To run Web applications from the <VIP_root>\WWW\INETPUB\CGIsamp directory at your local computer, you need to fulfill the following steps:

  1. Install MS Personal WEB server.
  2. Copy the content of <VIP_root>\WWW\INETPUB\CGIsamp directory into your server directory (e.g., Inetpub\wwwroot\CGIsamp).
  3. Provide the possibility to run executables from this directory. 
    There are several ways to do it:
  1. Use the "Advanced Options" item in the Personal WEB server.
Click on  the "Edit Properties" button,
Check "Execute".
  1. Another way to provide this possibility is to use the File|Properties menu command in the Windows Explorer or Windows Commander to invoke the Properties dialog for this directory.
Choose "WEB Sharing" tab,
Check "Share this directory" checkbox.
In the "Edit Alias" dialog check all checkboxes.
  1. Start a browser that supports forms.
  2. Load http://<your server name>/cgisamp/index.htm.
  3. Run examples.

Where to Find the Source Code of Demo Examples of WEB Applications?

The source code of the WEB demo examples is  located in the <VIP_root>\WWW\CGI\Samples sub-directory.

How to Run CgiTest and Other Visual Prolog WEB Examples that are Supplied in the Form of Projects?

To run CgiTest and other examples from the WWW directory that are supplied in the form of projects without executable files, you need to build a project first. 

For example, to run the CgiTest example you need to fulfill the following steps: 

  1. Load CgiTest example (<VIP_root>\WWW\CGI\Test\CgiTest. PRJ) into Visual Prolog VDE. 
  2. In the Application Expert choose "Other Options" tab. 
    Click "Project Directories" and then choose "Output" tab. 
    You will see that CgiTest.exe file will be placed into <VIP_root>\WWW\INETPUB\CGIsamp directory. 

3. Build your project. 

4. Copy CgiTest.exe together with CgiTest.htm from <VIP_root>\WWW\INETPUB\CgiTest directory into your server directory (e.g., INETPUB\wwwroot\CgiTest). 

5. Provide a possibility to run CGI applications from your server directory .

 6. Start any browser that supports forms. 

7. Load CgiTest.HTM: //cgitest/cgitest.htm"http://<your server name>//cgitest/cgitest.htm. <http://<your server name>

Where to Find the Source Code of ESTA, Geni, License, and Pie Examples?

Projects for ESTA, Geni, License, and Pie examples are located in the \WWW\Programs sub-directory.

You will find a detailed description of ESTA example in the <VIP_root>\WWW\Programs\Esta\ReadMe.htm.