In general, we have a lot of data transmission mechanisms to reduce the bandwidth pressure on the server. We will adopt a method to compress file transmission. in php, zlib can also achieve gzip compression output, the following is a summary of GZIP
Ubuntu 12 load zlib extension for PHP
Today compiled a half-day PHP, installed after the discovery of less zlib extension, had to find information, in this article found
Http://www.ansen.org/add-extension-library-for-php.html
[Email protected] zlib]
Ubuntu 12 load zlib extension for PHP
Today compiled a half-day PHP, installed after the discovery of less zlib extension, had to find information, in this article found
Http://www.ansen.org/add-extension-library-for-php.html
[Root@ansen zlib]# pwd/
In general, we have a large number of data transmission manager want to reduce the bandwidth of the server pressure, will take a way to compress file transfer, PHP with Zlib can also achieve gzip compression output, below we look at the gzip
GZIP (Gnu-zip) is a compression technique. The page size can be turned into 30% or smaller after gzip compression. This way the user will feel very happy when browsing!
Preparatory work
1, can not find the Php_zlib.dll file?
Since the php4.3
Ubuntu12 loaded zlib extensions for php. after being installed, I found that zlib extensions were missing and I had to find more information. in this article, I found ubuntu 12 loaded zlib extensions for php.
I compiled php for half a day today.
To achieve GZIP compression page requires browser and server co-support, in fact, the server compression, uploaded to the browser after the browser decompression and parsing. There is no need for us to worry about the browser because most browsers
Pipeline [root @ Ansenzlib] # pwdrootlnmpphp-5.3.0extzli ubuntu 12 load zlib extension for php
I compiled php for half a day today. after installing it, I found that zlib extensions were missing, so I had to find more information. I found it in this
To implement GZIP compression pages, the browser and the server need to support them. In fact, the server is compressed. After being uploaded to the browser, the browser decompress and parse the files. We don't need to worry about browsers, because
To implement GZIP compression pages, the browser and the server need to support them. In fact, the server is compressed. After being uploaded to the browser, the browser decompress and parse the files. We don't need to worry about browsers, because
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.