Zend optimizer 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. Generally, the execution of a PHP program using Zend optimizer is 40% to 100% faster than that without Zend optimizer.
Zend optimizer 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. Generally, the execution of a PHP program using Zend optimizer is 40% to 100% faster than that without Zend optimizer. 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 Zend optimizer improves the profitability of e-commerce. Zend optimizer 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.
What is Zend optimizer?
Zo carefully checks the code generated by running the Zend compiler, analyzes and optimizes it to make it run faster. After testing, the program running speed can be improved by more than 60%, and the program consumption of system resources is reduced.
Why is Zo used? Isn't PhP4 fast enough?
Indeed, the standard run compiler for PhP4 is faster 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.
Where is Zo installed in PhP4?
Zo is located in the Zend engine of PhP4, between the running compiler and the final executor.
Is the final release version of Zo charged?
No. Zo's final version will continue to be released as free software. Zend technology companies do not plan to charge any Zo version.
How to obtain and install Zend Optimizer
Visit the http://www.zend.com/store/products/zend-optimizer.php to download the latest version of Zend optimizer.
Unix/Linux
- Compile PHP, do not add debugging options-otherwise Zo will not work: add the -- disable-debug option in the configuration
- Copy the zendoptimizer. So file to your machine, usually in:/usr/local/Zend/lib
- 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"
- Restart the Apache server
Windows
- Make sure that PHP has been debugged.
- Copy the zendoptimizer. dll file to your machine, usually in: C: \ Program Files \ Zend \ Lib
- 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 Files \ Zend \ Lib \ zendoptimizer. dll"
- Restart the Web server if necessary.