![]() |
Anybody can build a desktop website within 1 minute! |
| MyWeb Home | Download | How to Use | Buy | Support | Site Home |
MyWeb has two programming interfaces: Windows Script interface and Win32 Console Application interface.
With the Windows Script language, JScript and VBScript, you can access almost all the resource of the system, such as files and folders, the shell, the network, as well as resources provided by other applications, such as Micosoft Excel, Word, Access etc.
MyWeb use CScript.exe to run your Script file. CScript.exe is a programm shipped together with Windows. It is a Console programm (or DOS programm). For Windows 9X, it is in the Command folder, For Windows 2000, XP, it is in the System32 folder.
The equivalent of CScript.exe is WScript.exe, which is the Windows version with GUI. For Windows 9X, it is in the Windows folder, For Windows 2000, XP, it is in the System32 folder.
You can use any programming language to produce a Win32 Console Executable File (or DOS programm file). MyWeb starts your programm in an new and independent process.
When your program is started, it gets two parameters from MyWeb. The first parameter is an unique ID, for example, 123-456789 the second parameter is the address of the cilent, for example, 123.123.123.123:5678.
The HTTP request header from the client's Web browser is stored in a file. The file is in the same directory as your programm. You use the ID passed to your program to get the name of the file. For example, if the ID is 123-456789, then the name of the file is 123-456789.r
After parsing the HTTP request header from the client's Web browser,
now you know how you should repsonse the client.
You must let MyWeb know that too, so that MyWeb can cooperate with your program.
You do this by creating a Control File.
The name of the Control File uses the ID too.
For example, if the ID is 123-456789,
then the name of the Control File is 123-456789.c
The Control File is a text file with 3 characters,
for example, 101. Here are the definitions of the three characters, from the first to the third:
When disconnected by the cilent,
MyWeb let your programm know it by creating a Stop Flag File.
If the ID is 123-456789,
then the name of the Stop Flag File is 123-456789.s
If your programm takes a long time creating the response body file,
you should check regularly if the Stop Flag File exists,
to avoid wasting time.
Click here to download the samples. The package contains several JScript files, a Win32 Console executable file and its source file. Control codes are used in the file names. For example, mwext_001.js means this program use "001" as control codes.
Following these steps to install the sample files: