What is suitable buffer size for uncompressing large gzip files in gzopen using php?
问题 function uncompress($srcName, $dstName) { $sfp = gzopen($srcName, "rb"); $dstName = str_replace('.gz', '', $dstName); $fp = fopen($dstName, "w"); fseek($FileOpen, -4, SEEK_END); $buf = fread($FileOpen, 4); $GZFileSize = end(unpack("V", $buf)); while ($string = gzread($sfp, $GZFileSize)) { fwrite($fp, $string, strlen($string)); } gzclose($sfp); fclose($fp); } I use this code for uncompressing but It does not work and I get following error: Internal Server Error The server encountered an