I have an n-tier system in which the frontend template interface calls the application server. For example, I need to get some search results, and the external interface calls the backend to get the results.
Both the template engine and application server are written in PHP. I am currently using PHPed to initiate debugging sessions for the template engine, however, when the HTTP request goes to the remote service, my debugger just sits and waits for the I / O to complete.
What I would like to do is emulate an HTTP call, but really just stay inside my PHP process, do a giant push of the environment on some stack, and then load and process the application environment calls. After the call is completed, I make env pop and get the results of the http call in var (for example, through the output buffer). I can run both services on the same server. Does anyone have ideas or libraries that already do this?
source
share