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:
- This article is from: Linux Learning Tutorial Network
Detailed installation of PHP operating environment