Solving how to invoke the PHP parser

Source: Internet
Author: User
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

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.