PHP decompression functions gzdecode and gzinflate use methods PHP decompression functions gzdecode and gzinflate use method Technology
Maybe yes, published on
How to use the gzdecode function added after PHP 5.4, gzdecode? Decodes a gzip compressed string, decompress a string compressed with gzip, which is written in the manual on the official website.
Currently, the PHP version of many space service providers has not reached 5.4, which also leads to an undefined function error after using this function. how can this problem be solved? Some of the logs submitted by users on the PHP official website provide a good solution. use the gzinflate function instead. the code is as follows:
The function of gzinflate is similar to that of gzdecode, in The annotation of the returned value, the official prompt "the function will return an error if the uncompressed data is more than 32768 times The length of the compressed input data or more than the optional parameter length. ".
Grade (84) evaluation (0) View Comments