What to do if you are asked to run the entire Web site as a CLI shell of PHP

Source: Internet
Author: User
Our project used a PHP shell to run the service, we contractor want to find the treasure, we want to put the whole site like it write;
He said that PHP shell of the thing is also written in PHP, your site is also PHP, since it is possible, it must be done, why not write together? How do you break it?


Reply to discussion (solution)

PHP Shell write webserver is not generally difficult, need to parse the HTTP protocol, implement a cookie session, but also to simulate the PHP-FPM environment, $_srver $_post $_get ....
But you can look at Swoole, which is written in C.
If you want native PHP to write, you can look at the Workerman, it comes with a webserver should be able to help you

Basically it should be about the same. You can try it and know it.

But I usually use the CLI is used to do the collection of work.

No interactive functionality.

What about the station?
Your station only function,?

It's a very challenging look.

What about the station?
Your station only function,?


There are web pages, interactive features, all bad
  • 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.