Three "soft" tricks for PHP website acceleration (1 ). With the popularization of the network, websites have penetrated into every industry. However, as the cost of leased lines is hard for many enterprises and individuals, sharing bandwidth has become the best choice for many websites. with the popularization of the network, the website has penetrated into every industry. However, because the current leased line cost is hard for many enterprises and individuals to bear, sharing bandwidth has become the best choice for many websites. Although the cost has been reduced, a new problem has quickly emerged, that is, the internet speed of shared bandwidth is very slow and sometimes even unbearable. How to make your website faster becomes a matter of concern to people. I will talk about some practical applications of soft methods in my hands, hoping to help readers.
I use the Linux operating system and Apache + PHP website construction method.
Code Optimization
Programmers usually need to have good programming habits to minimize the emergence of redundant code. now there are also a lot of tools to complete this function. for general html documents, there are a lot of tools to reduce redundancy, for PHP programs, there are not too many such tools, but Zend Optimizer of Zend Technologies is a good code optimization tool that can be obtained free of charge from the Zend Technologies website. Zend Optimizer is also very simple to use, as long as the download of the ZendOptimizer-1 [1]. 0.0-PHP_4.0.4-extract the Linux_glibc21-i386.tar.gz document and paste the ZendOptimizer. copy the so document to the/usr/local/Zend/lib directory, and then modify php. add the following lines at the end of the ini document:
...