I'll try to share.
1
I installed :
http://www.uniformserver.com
This package (no need for any installation, just click and run)... allows Windows users to set up an Apache server, along with MySQL and PhP server... Amazing. It's even too easy.

Anyway.
2
Then, a quick read of the great CGI tutorial made by Hyperactive Software on :
http://www.hyperactivesw.com/cgitutorial/intro.html
3
-I put the file C:\Program Files\Revolution Enterprise\3.5.0-gm-2\Runtime\Windows\x86-32\standalone
inside the directory : C:\MYSERVER\UniServer\home
Changed the name to "revolution"
-I put the files C:\Program Files\Revolution Enterprise\3.5.0-gm-2\Runtime\Windows\x86-32\Externals\revdb.dll
and C:\Program Files\Revolution Enterprise\3.5.0-gm-2\Runtime\Windows\x86-32\Externals\Database Drivers\dbmysql.dll
(This is the database library and the MySQL driver)
both in C:\MYSERVER\UniServer\home
4
In C:\MYSERVER\UniServer\cgi-bin
I put a "database.cgi" file. I used the method described here by Björnke von Gierke : http://forums.runrev.com/phpBB2/viewtop ... ilit=mysql
Here is the content of file :
Code: Select all
#!C:/MYSERVER/UniServer/home/revolution -ui -- it won't work without an absolute path
on startup
set the externals of the templateStack to "C:/MYSERVER/UniServer/home/revdb.dll"
create stack "externals"
start using stack "externals"
revSetDatabaseDriverPath "C:/MYSERVER/UniServer/home"
put revOpenDatabase("MySQL","127.0.0.1","XXX","XXX","XXX") into dbIDM
put "SELECT preference where pserie like 'XXXX%'" into dbSQL
put revDataFromQuery(,,dbIDM,dbSQL) into theData
put "Content-Type: text/plain" & cr & cr
put theData
-- As we have created a stack we need either quit or delete
-- stack at the end.
delete stack "externals"
end startup
http://localhost/cgi-bin/database.cgi
It's working fine. Data are displayed.
I love RunRev.

Now, I've got no idea if this solution is workable. I mean : creating a stack, then deleting it for each query... Memory issues ?