Detailed installation of PHP operating environment

Source: Internet
Author: User
Tags php programming language php software
first, what is the PHP operating environment

The ability to understand human and computer communication language software, usually refers to the interpretation of the PHP programming language software.

For example:

PHP (code) requires PHP hypertext pre-compiler (software).

Java requires JVM virtual machine

Second, install PHP operating environment (PHP software)

The following are two PHP software 32-bit.

Direct decompression means installation.

We use 32-bit during class. Because 32-bit software can run on a 32-bit computer or on a 64-bit computer.

Note: The installation directory does not appear special characters or Chinese

Third, how to let PHP environment run (understand) PHP code

There are two ways of doing this:

1. Directly run (understand) the PHP code in the code file directly using the PHP software.

2. In the B/s structure, let Apache use PHP software to run (understand) the PHP code in the code file

(1) PHP software directly run (understand) the code file in the PHP code

There is a php.exe executable in the directory under the PHP software installation:

The program is a DOS program that needs to be run in a DOS system.

To run the steps:

1. Enter DOS system: Start---Run---cmd---enter or Windows key + R Fast button

2. The PHP software (PHP preprocessor) version number can be viewed on the DOS system

View the current PHP version number by Php.exe v.

The exe here can be omitted without writing.

3. Execute the PHP code in the code file using the Php.exe f PHP file address.

This is the language---PHP that communicates with the computer.

Computer to understand the programming language (can omit-f):

Note: The PHP software runs (understands) the PHP code rather than the file ending in. php, so the PHP code can be written in any file.

(2) in the B/s structure, let the PHP software on the server run directly (understand) the PHP code in the code file

Emphasize:

1.web server is a software, the software can be apache,iis,nginx and so on. It is mainly based on the user's browser needs to send static content to the browser.

2. The browser never deals directly with the PHP preprocessor, the PHP preprocessor is responsible for running (understanding) PHP code in PHP files, and then handing the results to the Web server

3. The most common is to use Apache as a Web server

Flowchart on the browser side:

Running on the server:

  • 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.