gzopen

Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Open gz-file
gzopen(string $filenamestring $modeint $use_include_path 0): resource|false
    private function extractUsingExt($file$targetFilepath)

    {

        
$archiveFile gzopen($file'rb');

        
$targetFile fopen($targetFilepath'wb');

        while (
$string gzread($archiveFile4096)) {

            
fwrite($targetFile$stringPlatform::strlen($string));