About Zend Optimizer

Source: Internet
Author: User
Tags execution final include ini net version versions zend
Zend Optimizer (hereinafter referred to Zo) improves the execution speed of PHP 4.0 applications by optimizing the code. The principle of implementation is to optimize the code that is generated by running the compiler (Run-time Compiler) before it is finally executed. Optimization can improve your earning power

In general, PHP programs that use Zo are 40% to 100% faster than those that are not used. This means that visitors to the site can browse the Web more quickly, thus accomplishing more business and creating better customer satisfaction. Faster response also means that hardware investment can be saved and the services provided by the site are enhanced. Therefore, the use of ZO, it is tantamount to improving the profitability of e-commerce.

Zo can bring a lot of benefits to PHP users, especially those who run websites. Running a PHP program quickly can significantly reduce the CPU load on the server and reduce the response time by half, which is the time between when the visitor clicks on the link to the server and starts reading the page.

System Requirements

The current version of Zo (Beta 4) can only run under PHP 4.0.

The requirements for the operating system are as follows:
-x86 Linux system based on glibc2.1 (Red Hat 6.1, Mandrake 7.0, Slackware 7.0 and SuSE 6.1)
-x86 Linux system based on GLIBC2 (Red Hat 5.2, SuSE 6.1)
-x86 Linux system based on LIBC5 (Slackware 4.0, Debian 1.3.1r8)
-Sparc Solaris 2.6, 7, and 8
-FreeBSD 3.4 and 4.0
-Windows NT 4.0 (excluding other versions of Windows)

The requirements for PHP are as follows:
-PHP 4.0.0: Versions other than that are not supported
-Support both CGI and Apache module modes
-under Windows, PHP must: 1 is a ready-made WIN32 execution version downloaded from the http://www.php.net; 2 compile-time with the "Release_ts" (Release Thread Safe) option.

installation process

-unix
1 Compile PHP without debugging options-otherwise ZO will not work: In configuration is plus--disable-debug option
2 copy zendoptimizer.so files to your machine, usually placed under:/usr/local/zend/lib
3 Add the following two lines to the php.ini file and do not include any spaces:
Zend_optimizer.optimization_level=7
zend_extension= "/usr/local/zend/lib/zendoptimizer.so"
4 Restart the Apache server

-windows
1 Download the Windows version of PHP 4.0.0 from http://www.php.net, this version contains no debugging features.
2 copy ZendOptimizer.dll files to your machine, usually placed under: C:Program Fileszendlib
3 Add the following two lines to the php.ini file and do not include any spaces:
Zend_optimizer.optimization_level=7
zend_extension_ts= "C:Program FilesZendlibZendOptimizer.dll"
4 Restart the Web server if necessary

Zend Optmizer FAQ

Q: What is Zend Optimizer?
A: Zo carefully examine the code generated by running the compiler, analyze and optimize it, and make it run faster.

Q: Why to use Zo, is PHP4 not fast enough?
A: Indeed, the standard run compiler for PHP4 is fast enough-2-10 times faster than PHP3 in the same situation. But PHP programs that use ZO can speed up to 40% to 100% faster.

Q: What is the location of the Zo in the PHP4 software installation?
A: Zo is located in the Zend engine of PHP4, between the running compiler and the final executor.

Q: Will the final release of Zo be charged?
Answer: No. The final version of ZO will continue to be released as free software. Zend technology companies do not intend to charge any ZO version.

Q: How did the developer learn that Zo is running?
A: As long as the PHP function phpinfo () to detect, as follows:
Phpinfo ();
?>
The ZO part of the results shown is as follows:
This program makes 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.