Hudzilla.org - the homepage of Paul Hudson
Contents > Performance > Optimising your code Wish List | Report Bug | About Me ]

18.1.5     Use a PHP code cache

This is NOT the latest copy of this book; click here for the latest version.

There is one simple way you can double the speed of your server, and that is to install IonCube's PHP Accelerator - it is fast, free, and works perfectly on Linux. If you don't mind paying money and want another 20% extra speed boost, Zend's Performance Suite is the way to go - it is better supported than PHPA, works with newer versions better, and has the edge on speed to boot. If you have a small/non-existent budget, PHPA is your best choice. If you have a little money and really do want to push your PHP code to the max, Zend's Performance Suite will be a purchase you will not regret.

Recently the Alternative PHP Cache (APC), the cache that performed most poorly in our tests, has been transferred into PEAR, the PHP code repository - it is now being worked on by PHP developers. As such, it is now much better than it previously was, almost snatching the #1 spot. Well worth a try!





<< 18.1.4 Use the Zend Optimizer   18.1.6 Read the manual carefully >>
Table of Contents
Want to see this stuff in print? PHP in a Nutshell takes the core topics covered here, adds in thousands of edits from the editorial team and myself, and combines them to make an unbeatable reference for PHP programmers at all levels.



My latest book has hundreds more tips on how to use PHP, Apache, and MySQL, plus Perl, Python, shell scripts, performance tuning, and more!



Top-right shadow
 
Bottom-left shadow Bottom shadow

Comments from other readers
Navi - 20 Aug 2008

Another option (and my preffered) is eAccelerator - follower of turck mmcache aviable at http://eaccelerator.net/HomeUk - it's benchmarks show it as #1, but it has one more important feature - encrypting your script, so they are human-unreadable.



Add comment
Please note that by posting a comment here you are committing it to the public domain. This is important so that others can make use of your code themselves, and also so that I can incorporate helpful notes directly into the main text. Comments are limited to 2000 characters in length.

If you are reporting an error in the content, please tell me directly.

Your name/email address:
Your comment:
 
Now, in order to verify that you're a real person, please answer this simple question: what is zero plus five?
The answer is:
(please write in
numbers, eg 19)


Top-right shadow
 
Bottom-left shadow Bottom shadow