I wish to communicate between Apache as well as an exterior process. I'm able to customize the supply of the procedure (designed in C++) around I would like, but Apache should (hopefully) stay the same. I believed about simply using an Intranet socket between PHP and also the program, but that simply appears inefficient and difficult to do if you will find multiple page loads at the same time, and taking advantage of personal files is a whole lot worse.

Basically, Apache (and PHP) would query the exterior program, and really should read or modify a hashtable. How must i start carrying this out?

Build your 'external process' expose an HTTP server, then reverse-proxy from apache to that particular HTTP server. Done.