Beginner's portal: Describes the core Zend of PhP4.

Source: Internet
Author: User

The name of the Zend engine is a combination of the names of two senior designers, Zeev suraski and Andi gutmans, who work as core developers in PHP. the developer aims to develop a new script execution mechanism, and PhP4 is the first implementation product of the new Zend engine. In some special test environments, the execution speed of Zend (PhP $) is several to several hundred times faster than that of php3 and ASP, this also means that the website's backend CGI interface is not a PhP4 Zend. (Of course, technology is constantly improving. Maybe a new engine will emerge one day .)
After more than two years of development, the Zend engine has become a generalized programming environment similar to the VBA function. It not only has the traditional PHP function, but also adds the function of Distributed Object (COM, and can be executed on different operating platforms. With this potential, the terminator of VBA is not Zend.
Zend makes the most complete commitment to the session with the biggest defect before php3 in PhP4, and adds some future functions, such as cybercash... and so on.
In the opensource community, PHP/Zend is the best example of the only one that can maintain consistency, but has not yet been regarded as a competitor by Microsoft. It has completely lost ASP behind it and is developing towards the VBA environment. Microsoft only tries its best to deal with Linux and does not notice any threats from PHP/Zend.
The Web server finds that PHP requires parsing by the PHP engine (based on the file extension), so it is sent to the Zend engine of PhP4.
The Zend engine reads files from the hard disk and sends them to the Zend online Compiler (run-time compiler) Program Literal translation. (Online compilation may be omitted after Zend compiler is released in the future .)
The online Execution Unit (excutor) of the Zend engine executes the compiled PHP program. When necessary, find the relevant modules to perform cooperative actions (such as XML, IMAP, ODBC ).
Zend organizes the execution results into HTML files and sends them to the web server.
The Web server sends the results over the network to the user's browser.
Zend has the following four types of products:
Zend engine: currently, Zend engine is only a PhP4 product and provides functions similar to Microsoft VBA and cross-platform. The current popularity on the Internet has also given the best witness to the Zend engine. Among Zend's four major products, this is currently the only mature product.
Zend optimizer: the Zend optimizer readjusts the PHP core to improve the efficiency of PHP program execution. Mainly accelerates PHP Code And reduce the CPU burden, reduce the latent time.
Zend cache: Zend cache takes the PHP program to the memory of the web server, so that the system no longer needs to read the PHP program from the hard disk, which can greatly shorten the system response time and reduce the network load. Data with cache can be reduced without literal translation.
Zend Compiler: Zend compiler is probably the most powerful weapon of Zend. It allows PHP program code to exist in the form of Zend intermediate code (zic, Zend intermediate code) after compilation.
It can protect PHP Source code To prevent users from seeing it and ensure the security of PHP source code. The appearance of this product is expected to have a significant impact on the entire network. The PHP code library will be visible everywhere, and the software industry will also provide related function libraries or object libraries for PHP programmers. At that time, there may be PHP conflicts with Java.

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.