PHP website speed up three "soft" strokes (1) _php tutorial

Source: Internet
Author: User
Tags php website
With the popularity of the network, the site has penetrated into every industry, but because now the cost of special line for many enterprises and individuals can not bear, so the sharing of bandwidth has become the best choice for many sites. Although the cost is reduced but a new problem is quickly emerging, that is, sharing the bandwidth of the internet is slow, and sometimes unbearable. How can make their own website quickly up, become people's concern, the author combined with hands-on practice to talk about some practical application of soft methods, hoping to be helpful to the reader.

The author uses the Linux operating system, Apache+php's website construction method.

Code optimization

Usually requires programmers to have good programming habits, to minimize the appearance of redundant code, there are many tools to do this, for the general HTML document, to reduce the redundancy of the weight loss tool, and for the PHP program is not a lot of tools, but Zend Technologies's Zend Optimizer is a great code optimization tool that can be obtained free of charge from Zend Technologies's website. Zend Optimizer is also very simple to use, as long as the downloaded zendoptimizer-1[1].0.0-php_4.0.4-linux_ Glibc21-i386.tar.gz the document, copy the zendoptimizer.so document to the/usr/local/zend/lib directory, and then modify the php.ini document, adding the following lines at the end:


http://www.bkjia.com/PHPjc/446690.html www.bkjia.com true http://www.bkjia.com/PHPjc/446690.html techarticle with the popularity of the network, the site has penetrated into every industry, but because now the cost of special line for many enterprises and individuals can not bear, so the sharing of bandwidth has become the best choice for many sites ...

  • 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.