Hello, I am a top-down dinosaur struggling with a concept of who's on first ... might be that I am just overthinking this BUT ...
Scenario: Unix flavor (apache2 based webserver) running WordPress. Installed Plugin provides for PHP hooks.
Having read through the WP and WP Plugin best practices I am not getting a black and white answer to my concerns that the PHP hook code I have made can't be clobbered by reentry (multiple clients).
What I am struggling with the most is what exactly happens when a client requests a WP page:
Given - Wordpress front end triggers an HTML page build out based on the page Content stored in SQL tables
1) how does unix | apache | wp, keep track of the client? Old school communications (Modems) negotiate a connection that is then exclusively nailed up until the host or client disconnects ... my understanding of Internet | intranet interactions is that a "Connection" isn't physically nailed up in the same way ... but ... expecting there must be some kind of KEY/REFERENCE that the client browser and the host exchange (simulating a nailed connection) for continued interactions?`
2) in keeping with question one, is it likely to expect EACH "Connection" on the server will have its own separate DATA space? The PHP hook I have written needs to have Global variables because EVENTS are disconnected ... ie: Event 1 will store information that Event N requires ... I hate Globals because there is an implication they can be changed by other processes and or events ... SO LONG STORY SHORT: is there any possibility that the GLOBALS are open to other CLIENT "CONNECTIONS" ... OR ... am I safe to assume (without making an ass out of you or me) that EACH client will have its OWN set of GLOBAL variables?
When I do a ps -ef on the server with a minimum 2 clients connected, I was expecting to see tasks for both clients ... basically, only see one of each apache and wp services ... suggesting that if there are separate data spaces, they are being managed at the application/service level? Maybe there are cli tools that can list client connections?
Thank-you in advance for your time on setting this old dinosaur straight