Learning--php life cycle of PHP kernel
Start of everything: SAPI interface
SAPI (Server application programming Interface) refers to a specific application of PHP programming interface, just like a PC, no matter what operating system installed, as
Start of everything: SAPI interfaceSAPI (Server application programming Interface) refers to a specific application of PHP programming interface, just like a PC, no matter what operating system installed, as long as the interface specification of
1, PHP mode of operation:PHP Two mode of operation is Web mode, CLI mode. Regardless of the mode, PHP works the same way, running as a SAPI.1. When we typed the PHP command at the terminal, it was using the CLI.It is like a Web server to support PHP
PHP Kernel Understanding: Life cycle and operating mode
PHP run mode
1) CGI (Universal Gateway Interface/Common Gateway Interface)2) FastCGI (resident type cgi/long-live CGI)3) CLI (command line run/Interface)4) Web module mode (the mode of
1, PHP mode of operation:PHP Two mode of operation is Web mode, CLI mode. regardless of the mode, PHP works the same way, running as a SAPI. 1. When we typed the PHP command at the terminal, it was using the CLI.It is like a Web server to support
The life cycle of PHP
In a common webserver environment, you cannot start the PHP interpreter directly; This is typically initiated by Apache or other webserver, which loads PHP processing scripts that need to be processed (requested. PHP
If I kill PHP, the process
Will the PHP process execute the __destruct () destructor?
What is the impact on the life cycle of PHP?
I think that Linux kill is out of the control of PHP, and the PHP life cycle has no relationship, is this
Before you know the PHP life cycle, learn how Apache is associated with PHP.
Analysis of 1.Apache operation mechanism
-----------------------------
Overall as follows:
Apache hook mechanism Apache hook mechanism refers to: Apache allow
EOF is a very important concept, and almost every major programming language provides built-in functions to verify that the parser has reached the file EOF. In PHP, this function is feof (). The feof () function is used to determine whether the end
Deep understanding of the PHP Kernel (ii) Overview-php life cycle and Zend engine
This article refers to the in-depth understanding of the PHP kernel, address: Https://github.com/reeze/tipi
1. SAPI interface
SAPI (Server application programming
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.