Yngvarr

Generation

generate functionSat, 07 Jan 2023

pack to gz and return archive

function pack_gz($data) { $gzdata = gzencode($data, 9); return $gzdata; } $data = file_get_contents('sample.txt'); $gzdata = pack_gz($data);

Questions about programming?Chat with your personal AI assistant