NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: MarcLEBHERTZ on June 13, 2012, 05:53:17 AM

Title: call a CGI module
Post by: MarcLEBHERTZ on June 13, 2012, 05:53:17 AM
Hi,

i have to call a CGI module when the user clics a button on a NetWebPage

how can i do this ?

it is a module for securised payment from a company named PayBox

thank you
Title: Re: call a CGI module
Post by: Bruce on June 13, 2012, 06:38:37 AM
So, CGI modules are usually an Exe. you pass it some input, either via the command line, or via some sort of text file, and it outputs HTML - either to the "standard out" or to a text file.

Obviously calling a program from clarion is real easy. Depending on how the program takes input, and delivers output, it's either trivial to interact with it, or mildly difficult.

We are using the PHP engine in exactly this way to support PHP pages. However we needed to create OddJob in order to pipe the input into the module (because it uses Standard In) and in order to capture the output (it outputs to Standard Out.) OddJob uses StringTheory, but between them it's pretty much no problem to run the CGI module.

cheers
Bruce