NetTalk Central

Author Topic: call a CGI module  (Read 1894 times)

MarcLEBHERTZ

  • Newbie
  • *
  • Posts: 1
    • View Profile
    • Email
call a CGI module
« 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

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11239
    • View Profile
Re: call a CGI module
« Reply #1 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