About Zend Optimizer

Source: Internet
Author: User

Zend Optimizer (ZO) uses code optimization methods to speed up the execution of PHP 4.0 applications. The principle of implementation is to optimize the code generated by the Run-Time Compiler before it is finally executed. Optimization can improve your profitability
Generally, PHP programs that use ZO are 40% to 100% faster than those that do not use ZO. This means that the visitor of the website can browse the webpage faster, so as to complete more transactions and create better customer satisfaction. Faster response also means saving hardware investment and enhancing the services provided by the website. Therefore, using ZO improves the profitability of e-commerce.
ZO can bring many benefits to PHP users, especially those who operate websites. Quick running of the PHP program can significantly reduce the server's CPU load and reduce the response time by half, that is, the time between the visitor clicking the link to the server and reading the page.
System Requirements
The current version of ZO (Beta 4) can only run under PHP 4.0.
The operating system requirements are as follows:
-Glibc2.1-based x86 Linux systems (Red Hat 6.1, Mandrake 7.0, Slackware 7.0, and SuSE 6.1)
-Glibc2-based x86 Linux (Red Hat 5.2, SuSE 6.1)
-X86 Linux System Based on libc5 (Slackware 4.0, Debian 1.3.1r8)
-ISCSI Solaris 2.6, 7, and 8
-FreeBSD 3.4 and 4.0
-Windows NT 4.0 (excluding Windows of other versions)
The requirements for PHP are as follows:
-PHP 4.0.0: Other versions are not supported.
-Both CGI and Apache modules are supported.
-In Windows, PHP must: 1) be a ready-made WIN32 execution version downloaded from the http://www.php.net; 2) include the "Release_Ts" (Release Thread Safe) option at compile time.
Installation Process
-UNIX
1. Compile PHP. Do not add debugging options. Otherwise, ZO will not work. Add the -- disable-debug option to the configuration.


2. Copy the ZendOptimizer. so file to your machine, usually in:/usr/local/Zend/lib.
3. Add the following two lines to the php. ini file and do not contain any spaces:
Zend_optimizer.optimization_level = 7
Zend_extension = "/usr/local/Zend/lib/ZendOptimizer. so"
4. Restart the Apache server.
-WINDOWS
1 Download windows php 4.0.0 from the http://www.php.net, which does not contain debugging features.
2. Copy the ZendOptimizer. dll file to your machine, usually in: C: Program Filesendlib.
3. Add the following two lines to the php. ini file and do not contain any spaces:
Zend_optimizer.optimization_level = 7
Zend_extension_ts = "C: Program FilesendlibendOptimizer. dll"
4. Restart the WEB server if necessary.
Zend Optmizer FAQs
Q: What is Zend Optimizer?
A: ZO carefully checks the code generated by running the compiler, analyzes and optimizes the Code to make it run faster.
Q: Why is ZO used? Isn't PHP4 fast enough?
A: indeed, the standard run compiler for PHP4 is already fast enough-in the same case, it is 2-10 times faster than PHP3. However, the execution speed of PHP programs that use ZO is 40% to 100% faster.
Q: Where does ZO install PHP4?
A: ZO is located in the ZEND engine of PHP4, which is between the running compiler and the final executor.
Q: Do I have to pay for the final release of ZO?
A: No. ZO's final version will continue to be released as free software. ZEND technology companies do not plan to charge any ZO version.
Q: How do developers know whether ZO is running?
A: You only need to use the PHP function phpinfo () for detection, as shown below:
Phpinfo ();
?>
The ZO section in the displayed result is as follows:
This program makes use of the Zend scripting language engine:
Zend Engine v1.0, Copyright (c) 1998-2000 Zend Technologies Ltd.
With Zend Optimizer v0.98, Copyright (c) 1998-2000 by Zend Technologies

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.