PDA

View Full Version : thinBasic as a CGI Module?



tekrat
07-01-2008, 17:09
Can thinBasic run as a CGI module like PHP?

ErosOlmi
07-01-2008, 17:16
Ciao tekrat.

Yes, thinBasic has a CGI module that allows thinBasic to be used as server side scripting engine.
We have put online a little very basic page at http://cgi.thinbasic.com/ to show it (in page footer a link to the souce code).
Also you will find in thinBasic help file info on how to setup thinBasic to be used by IIS or other web servers. For example:
http://www.thinbasic.com/public/products/thinBasic/help/html/cgi.htm
http://www.thinbasic.com/public/products/thinBasic/help/html/configuring_thinbasic_under_ii.htm

To be honest thinBasic has not been widely tested to be used as server side because so far there was no interest. But if you are interested we will support you in everything you will need.

Ciao
Eros

tekrat
07-01-2008, 17:50
Fricking awesome! Thanks!

kryton9
08-01-2008, 00:01
You know in thinking about this great feature, it just hit me.

Wouldn't this be a cool work around for using thinBasic on handheld devices with interenet capabilities or wireless networking?
Could we setup a server at home, log in via our device then run and write programs with the handheld via the net connection in thinBasic then?

ErosOlmi
08-01-2008, 01:36
Well, if I've understood well your request, I would reply no.
thinBasic can be used exactly like PHP or other server side languages inside the web server. They get requests, understand them, reply with buffers, mainly HTML/Javascript text to the client. Client interpret it and show in the browser. Nothing more.

If yu look at the source code in http://cgi.thinbasic.com/index.tbasicc you will see that thinBasic script is passed from IIS6 web server to thinBasic engine. thinBasic engine execute it and return a buffer to the web server. That buffer is sent then to the client, your browser.

At the moment, the only way to excute a thinBasic script into a handled device is to have Win9x or above installed into the device.

Sorry if I missed something in your request.

Ciao
Eros

kryton9
08-01-2008, 02:06
Eros, you are right of course, I just got excited by the possibility I guess :)