Solving how to invoke the PHP parser
I want to do an HTTP server, the previous parsing of the message, static text HTML transmission is done. Below want to do PHP function, previously only done Java, and now for PHP this a little idea, looked under, there is a PHP parser this thing, but how to implement in the C program call, and pass parameters. The novice indicates that the system is not understood at all, to explain the idea.
------Solution--------------------
Not very clear why you want PHP, if you do not even HTTP service implementation, and then implement PHP, why don't you use Apache?
There might be a simpler way to talk about what you're trying to solve.
------Solution--------------------
A way of realization
Using the FASTCGI Protocol for PHP and HTTP communication
PHP-FPM is a process manager for PHP, which listens to port 9000 by default
Your HTTP to implement the FASTCGI protocol itself under the link to other people's implementation
http://www.itcoder.me/?p=250