Main Board > Web Services
Setup EZWeb server on RedHat Linux 8.x Server
nmartinez@bristolind.com:
Thank you, Mike!!
nmartinez@bristolind.com:
Hi Mike.. very quick question.. when the program with the .PXP suffix runs, are we able to have a BEGIN Directive or are we able to CALL other programs with either RUN or CALL or another way? Just trying to understand if we need to put all the code on the program with the .PXP suffix or we can call other programs..
Thank you!
Mike King:
You should avoid a BEGIN or CLEAR as these will close the connection between the program and the web server and clear all the variables.
You can however do a CALL, PERFORM, or RUN to another program. Generally for security we suggest you have only a handful of .pxp programs in your document root directory and those will access programs and files in other directories. This provides additional security as it prevents hackers from trying to run programs they aren't supposed to.
For example, if you look at our web site www.pvxplus.com all the page and program requests are run thru the program pgsrvr.pxp which processes a pg= or tx= parameter on the URL to determine what to do. The actual web pages, data and logic used by our web site is maintained on a separate directory that is not exposed to the web server. The pgsrvr program validates the request and establishes any environmental settings required.
If you look at Webster+ it too operates in much the same way. All requests go through webster.pxp and the rest of the application is setup in directories outside the document root and are only accessible by first going through webster.pxp.
nmartinez@bristolind.com:
Thank you very much Mike for the explanation! It is greatly appreciated!!
nmartinez@bristolind.com:
One last question.. is there a global variable that receives the FULL URL as it gets to the .pxp program.
Example:
If the user types on his browser https://www.pvxplus.com/example.pxp?id=999&wo=1234567
Is there a variable that can be accessed while example.pxp is running?
Thank you!
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version