Dear friends,
this is a very simple cgi.
Windows 7 IIS is running on my pc
in my browser I insert this url
http://127.0.0.1/mobile/twn9.exe
Error DBCMD/2001 Workarea not in use: DBGOTOP;Function: MAIN Line: 21
The question is:
How can I set IIS in order That I can open dbf tables from a CGI EXE in a folder that is not on the same pc of IIS?
Many Thanks
marco
this is a very simple cgi.
Windows 7 IIS is running on my pc
in my browser I insert this url
http://127.0.0.1/mobile/twn9.exe
Error DBCMD/2001 Workarea not in use: DBGOTOP;Function: MAIN Line: 21
The question is:
How can I set IIS in order That I can open dbf tables from a CGI EXE in a folder that is not on the same pc of IIS?
Many Thanks
marco
#include "simpleio.ch"
#include "Error.ch"
FUNCTION MAIN()
LOCAL cDbf   := ""
LOCAL cFile   := ""
LOCAL cIndex  := ""
LOCAL cAlias  := ""
LOCAL cFirst1 Â := ""
LOCAL cLast1 Â := ""
LOCAL cFirst2 Â := ""
LOCAL cLast2 Â := ""
SET EXCLUSIVE OFF
SET DELETED ON
USE \\172.28.2.10\apps\analisi\customer  // the path is a shared folder in a server
cAlias := ALIAS()
GO TOP
cFirst1 := field->first
cLast1 Â := field->last
GO BOTTOM
cFirst2 := field->first
cLast2 Â := field->last
CLOSE DATABASE
 ?? [Content-type: text/html]
 ?
 ? [<html>]
 ? [<body>]
 ? [<head>]
 ? [ALIAS()]
 ? [<br>]
 ? cAlias
 ? [<br>]
 ? cFirst1
 ? [<br>]
 ? cLast1
 ? [<br>]
 ? cFirst2
 ? [<br>]
 ? cLast2
 ? [<br>]
 ? [</head>]
 ? [</body>]
 ? [</html>]
RETURN NILMarco Boschi
info@marcoboschi.it
info@marcoboschi.it