All of the above uses the optimization code method to speed up the program. Next we should take a look at another field of PHP acceleration-Cache tool software. This type of software is accelerated by optimizing the PHP runtime environment without changing any code. We can refer to them as "Execution code optimization/cache Tools". You can refer to them for lower-layer optimization/caching.
The following lists the commonly used tools. Use your own server environment to test the effect:
(1)APCAlternative PHP Cache
Http://pecl.php.net/package-info.php? Package = APC
APC runs on Linux and FreeBSD. You need to compile and install it yourself. According to their developers, the script speed can be increased by 50%-400% in their testing environment. APC is an open-source project that has been added to the PECL library of PHP. It is worth a try.
(2)Turck mmcache
Http://turck-mmcache.sourceforge.net/
Turck mmcache seems to be the most popular among such software. It is open-source and completely free of charge. It pre-compiles and caches PHP code and optimizes the PHP runtime environment. According to the official documentation, mmcache can significantly reduce the server load and increase the script execution speed by 1-10 times.
Mmcache is compatible with another well-known acceleration software Zend optimizer, but note that mmcache must be installed first (set in PHP. INI ). In addition to accelerating PHP programs, mmcache can also encrypt PHP code.
Turck mmcache supports both Linux and Win32 platforms.
(3)PHPAThe PHP accelerator
Http://www.php-accelerator
PHPA is another popular PHP acceleration software. On its official website, PHP scripts using PHPA, APC, and Zend cache are used for test comparison, which is slightly better than APC and slightly inferior to Zend cache.
PHPA supports Linux, FreeBSD, OpenBSD, bsdi, and Solaris systems.
(4)Zend Performance Suite
Http://www.zend.com/
Zend Performance Suite is a well-established PHP acceleration/optimization software based on Zend, the most well-known PHP company. Version 4.0 has been released, which can provide Program Acceleration, content caching, File compression, and download services for PHP applications. It has powerful functions and won several PHP magazine recommendation awards-but I have to mention it, it is also expensive. The current price is USD 1875.
The above acceleration software is expected to be tested by the reader based on the server environment and select the most suitable one, because I have no way to provide a universally applicable test standard to determine which solution is the most effective. In summary, I personally think turck mmcache is a recommendable option. It is free of charge and has excellent functions.
(4)Summary
The above describes PHP acceleration technologies in a comprehensive and meticulous manner from multiple perspectives, including testing and acceleration technologies (compression and caching). Code and examples are provided. I hope this article will help readers fully understand PHP Program Acceleration and select an appropriate Acceleration Solution in practical applications.