Embedding PHP in my server
===

I've developed a small webserver, and added PHP support to it. Right now it executes the scripts using CLI, but the downside is that it doesn't make use of the APC cache, so basically it has to re-compile the script each time it is requested.

Then I looked into using FastCGI, it works by running `php.exe -b` which then listens for incoming requests, but there seems no .NET code that shows how to talk to a FastCGI server. And on Windows php.exe doesn't support concurrent executions, so while it allows me to use the APC, it's even a step back from CLI.

I also considered talking directly to `php5ts.dll`, but again I couldn't find any wrappers for .NET.

So is there a another way to execute PHP concurrently and with opcode cache?