Is it possible to call a RPG or CL program from a php web program and return variables? I am assuming php is running on iseries. If so, does RPG/CL program have to be written to accommodate CGI/HTML type variables with SQL wrappers or some java-goo, or does something magically interpret the variables for me. I know I get use SQL drivers to get a record or a set or records from as/400 database, however sometimes I would need a RPG program to access data and perform calculations (eg complicated tax calculations) before returning a value or set of values.
Can the same program (assuming no interactive green screen) run both native and from php web script?
I have seen examples like the following...
Can the same program (assuming no interactive green screen) run both native and from php web script?
I have seen examples like the following...
PHP Code:
$dbh = odbc_connect("Driver={Client Access ODBC Driver (32-bit)};System=ipaddress",'user','pwd');
$sql = 'CALL /QSYS.LIB/MYLIB.LIB/EXAMPLECL.PGM(?,?)';
$stmt = odbc_prepare($dbh, $sql);
Comment