In response to passing data back and forth to Apache, if you use the PxPlus Apache interface its pretty easy. There is a complete section on it online at https://manual.pvxplus.com/page/apache.htm
First off you need either an E-Commerce license or the Web Server add-on.
Assuming you have that, you basically just add a PxPlus CGI Handler by adding the following lines to your Apache configuration:
# PxPlus program CGI handler
AddHandler pxplus-srvr .pxp .pvp
Action pxplus-srvr "/cgi-bin/pxp.cgi"
You then need to create the file pxp.cgi in the Apache cgi-bin. This is the OS script file to be run and should contain something like this:
#!/bin/bashYou may need to adjust pathnames above to suite your configuration setup.
/pxplus/pxplus /pxplus/lib/_plus/apache/pxp_cgi -arg <args>
For the <args> please check see this table
Once this is done (and the server restarted) you can place a pxplus program with the suffix ".pxp" or ".pvp" you want to run in the document root directory as defined in your Apache configuration.
Users can then submit requests to your server with the name of program (as in http://www.server.com/myprogram.pvp
) and the system will run your program and respond with anything your code output to the %PRINT_FN channel. Any arguments passed with the URL will come in as variables thus http://www.server.com/myprogram.pvp?action=edit
will run myprogram.pvp having first loaded the variable ACTION$
with the value "edit"
There are some pretty good example in the aforementioned section of the online manual that should be able to get you going.
Of course there is lot more you can do with Apache but for that you likely need someone with expertise on Apache configuration and setup.