How to compress PHP source code? -Php Tutorial

Source: Internet
Author: User
How to compress PHP source code? How to compress PHP source code? Please kindly advise.


Reply to discussion (solution)

What is PHP source code compression. Encryption?

Http://hi.baidu.com/lifushuilove/blog/item/62ae38d27bb487113bf3cf64.html

Encryption or website compression using php to increase the access speed. the host is windows2003.

Most of them are JavaScript/css code compression. Php compression. You can manually remove some line breaks and comments to reduce the file size.

Of course, you can use some tools. However, you must delete the comments and then compress them. Otherwise, an error cannot be run.

Well, the problem is solved. thank you.

The number of PHP code lines is not proportional to the execution efficiency! This efficiency estimation is far less efficient than studying the code itself.

Compression is generally targeted at platforms. For example, we recommend that you enable GZIP compression for the platform, streamline multiple CSS files into one, and use image Genie technology. You can speed up browsing.

Php does not compress and does not occupy traffic. the generated html code occupies the traffic. open the gzip option in apache.

Indeed, less code does not mean high efficiency

Put your source code in a folder, right-click the menu, select and add it to the compressed package, and then compress it. isn't it OK?

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.