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:
- 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?
- 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:
- Install a local WEB server (e.g. MS Personal WEB server).
- Make the <VIP_root>\WWW\INETPUB\CGIsamp a virtual directory.
Note: If you want to test all examples in the <VIP_root>\WWW\,
you may make the whole <VIP_root>\WWW\ a virtual
directory
- Provide the possibility to run executables from the directory.
There are several ways to do it:
- For example, if you use MS Personal WEB server, you can do it with the
help of the "Advanced Options" item in the Personal WEB Manager:
- Click on the "Edit Properties" button,
- Check "Execute".
- 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.
- Start a browser that supports forms.
- Load: http://<your server name>/cgisamp/index.htm.
- 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:
- Load CgiTest example (<VIP_root>\WWW\CGI\Test\CgiTest. PRJ) into Visual Prolog VDE.
- 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. Make <VIP_root>\WWW\INETPUB\CgiTest a virtual directory.
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
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.
Where to Find Additional Information about Demo
Examples and Real-World Visual Prolog CGI Applications?
You will find a lot of useful information about Visual Prolog WEB applications in the
"Introduction to Visual Prolog". To read this Introduction, use the Help|Introduction
to Visual Prolog menu command and then choose "Demo".
In the "Visual Prolog Demo Examples " page, you will find links to
descriptions of the demo examples and demos working at the WEB.
The page includes also links to real-world applications made in Visual Prolog.
You will find some useful tips in the "Frequently Asked Questions".
Please, see also the topic "Internet and Networking Support" ("Internet
support" keyword) in the Visual Prolog online Help.