PHP CGI differs from CLI

Source: Internet
Author: User
  When running in CGI, Web server transfers the user request to the PHP standalone process in a message, with no dependency between PHP and the Web service, and the CLI is a command line interface for executing PHP in the operating system command-line mode. For example, you can directly enter the PHP a.php directly in the win CMD or Linux shell mode to get the results. It is the most different from the CGI mode is not output HTTP header information (CGI mode in addition to output users can see the results, but also output the HTTP header information that the user cannot see directly), the information thrown directly in the text and not in HTML, such as a new test.php.
For the time being, we don't know what CGI and CLI are.

PHP CGI differs from CLI

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.