Three "soft" tricks for PHP website acceleration (1) _ PHP Tutorial

Source: Internet
Author: User
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:


...

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.