ZendOptimizer (ZO) uses the code optimization method to improve the performance of PHP4.0's application. The principle of implementation is to optimize the code generated by the Run-TimeCompiler before the ultimate performance. Optimization can improve your profit
Zend Optimizer (ZO) uses code optimization methods to speed up the execution of PHP 4.0 programs. The principle of implementation is to optimize the code generated by the Run-Time Compiler before the ultimate performance. Optimization can improve your profitability
In general, the PHP program that implements the application ZO is 40% to 100% faster than the PHP program that does not apply. This means that visitors of the website can browse the web page faster, so as to complete more transactions and develop better customer satisfaction. Faster response also means saving hardware investment and enhancing the services provided by websites. Therefore, the application of ZO improves the profitability of e-commerce.
ZO can bring many benefits to PHP users, especially those who operate websites. Fast 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 request to the control system is 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 other versions of Windows)
PHP requests are as follows:
-PHP 4.0.0: Other versions are not supported.
-Support both CGI and Apache module methods
-In Windows, PHP is required: 1) is a ready-made WIN32 fulfillment version from the http://www.php.net level; 2) with the 'release _ ts' (Release Thread Safe) option during self-compilation.
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 in 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, which is usually stored in: C: \ Program Files \ Zend \ lib.
3. add the following two lines in the php. ini file and do not contain any spaces:
Zend_optimizer.optimization_level = 7
Zend_extension_ts = 'C: \ Program Files \ Zend \ lib \ ZendOptimizer. dll'
4. restart the WEB server if necessary.
Zend Optmizer common title
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, it is faster enough to run the compiler on the PHP4 scale-in the same case, it is 2-10 times faster than PHP3. However, the performance of PHP programs with ZO application will be improved by 40% to 100%.
Q: What is the role of ZO in PHP4 software installation?
A: ZO is located in the ZEND Engine of PHP4, which is between the running compiler and the ultimate performer.