dBASE Plus Web Application Mapping
When dBASE Plus applications are launched in typical fashion, by directly invoking the application .EXE, they are run on Windows as two processes - one for the application .EXE, and one for the runtime engine (PLUSrun.exe). By invoking PLUSrun.exe directly, and passing the name of the application executable to it as a parameter, it is possible to run dBASE Plus applications as a single process. This is, however, not true for dBASE Plus web applications, since PLUSrun.exe itself must be deployed in a CGI-enabled folder in order to run.
The solution is to employ application mapping techniques. On a website with a high volume of dBASE Plus web application calls, server resources can be conserved and the potential for problems reduced by mapping those web application executables directly to the runtime engine.
When mapping dBASE Plus web applications, you must give the executables a unique extension other than .EXE. For the purpose of this discussion we'll use the extension .DBW. When invoked, dBASE Plus executables that are appropriately mapped to PLUSrun.exe and provided a valid extension (.DBW), are treated by a web server as if they were scripts to be handled by an interpreter, e.g. a Perl script.
dBASE Plus Web Application Mapping Using the Windows Registry
Many web servers, Apache and Sambar for example, can use the Windows registry to determine how to handle application scripts. dBASE Plus web applications can be mapped for these web servers as follows. We'll essentially create a new Windows 'File Type' with the extension .DBW. To do this in Windows NT:
Open Windows Explorer or any folder window.
Select the "File Types" tab.
Click the "New Type" button.
Type "dBASE Plus Web Applet" (without quotes) in the Description of type: field.
Type ".dbw" (without quotes) in the Associated extension: field.
Type "application/dbw'"(without quotes) in the Content Type (MIME): field.
Under the Actions: pane, click the "New" button.
In the resulting dialog, type "Open" (without quotes) in the Action: field.
In the Application used to perform action: field, type:
"<full path to PLUSrun.exe>\PLUSrun.exe" "%1"
You may use the "Browse" button to locate PLUSrun.exe - don't forget to delimit the result with quotes.
Optionally, choose an icon for .DBW files.
For Apache to use this file type you'll need to locate and uncomment (or add if missing) the following directive to the Apache configuration file (httpd.conf):
dBASE Plus Web Application Mapping for IIS
Launch the MMC for IIS.
Stop the web site, if started.
Right-click a folder used/enabled for CGI applets.
Select the "Directory" (or "Virtual Directory") tab.
In the Application Settings box, click the "Create" button if an 'Application' has yet to be created.
Click the "Configuration" button.
Select the "App Mappings" tab, click the "Add" button.
In the Executable field, enter:
"<full path to PLUSrun.exe>\PLUSrun.exe" "%s"
The "%s" parameter is case sensitive: "%S" will not work.
You may use the "Browse" button to locate PLUSrun.exe.
Don't forget to delimit the result with quotes.
In the Extension field, enter:
Click "OK" to exit each dialog.
Start the web site