About Zend Optimizer
Hunte May 23, 2000
e-mail it to me. I'll talk about my opinion. Previous article
Zend Optimizer (hereinafter referred to as ZO) uses optimized code to improve the execution speed of PHP 4.0 applications. 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 unused. This means that visitors to the site can browse the Web more quickly, completing more transactions and creating better customer satisfaction. A faster response also means that you can save on hardware investment and enhance the services offered by the site. Therefore, the use of Zo, is tantamount to improve the profitability of e-commerce.
Zo can bring a lot of benefits to PHP users, especially those who run the site. Running a PHP program quickly can significantly reduce the CPU load on the server and can reduce the response time by half, that is, the time between when a visitor clicks the link to the server to start reading the page.
System Requirements
The current version of Zo (Beta 4) can only be run under PHP 4.0.
The requirements for the operating system are as follows:
-glibc2.1-based x86 Linux system (Red Hat 6.1, Mandrake 7.0, Slackware 7.0 and SuSE 6.1)
-GLIBC2-based x86 Linux system (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 (other versions of Windows not included)
The requirements for PHP are as follows:
-PHP 4.0.0: Other versions are not supported
-Supports both CGI mode and Apache module mode
-under Windows, PHP must: 1) is an off-the-shelf WIN32 executable version downloaded from http://www.php.net, and 2) with the "Release_ts" (Release Thread Safe) option at compile time.
installation process
-unix
1 compile PHP, do not debug option-otherwise ZO will not work: in configuration Yes plus--disable-debug option
2 Copy the zendoptimizer.so file 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 Restarting the Apache server
-windows
1 Download the Windows version of PHP 4.0.0 from http://www.php.net, this version does not include debugging features.
2 Copy the ZendOptimizer.dll file to your machine, usually placed under: C:Program Filesendlib
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 FilesendlibendOptimizer.dll"
4 Restart the Web server if necessary
Zend Optmizer FAQs
Q: What is Zend Optimizer?
A: Zo carefully examines the code that runs the compiler, analyzes and optimizes it, and makes it run faster.
Q: Why use Zo, is PHP4 not fast enough?
A: Yes, the standard run compiler for PHP4 is fast enough-2-10 times faster than PHP3 in the same situation. However, PHP programs that use the Zo speed up to 40% to 100% faster.
Q: Where is zo in the PHP4 software installation?
A: Zo is located in the PHP4 Zend engine, between the run compiler and the final executor.
Q: Is there a charge for the final release version of Zo?
Answer: No. The final version of ZO will continue to be released as free software. Zend Technology does not intend to charge for any ZO version.
Q: How do developers know if Zo is running?
A: Just use PHP's function phpinfo () to detect the knowledge, as follows:
Phpinfo ();
?>
The part about ZO in the displayed results is like this:
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
http://www.bkjia.com/PHPjc/532017.html www.bkjia.com true http://www.bkjia.com/PHPjc/532017.html techarticle about Zend Optimizer Hunte May 23, 2000 e-mail it to me. I'll talk about my opinion. The next Article Zend Optimizer (hereinafter referred to as ZO) uses optimized code to improve the PHP 4.0 application ...