Yngvarr

Generation

generate functionSat, 07 Jan 2023

pack to gz and return archive

function pack_to_gz($filename) { $input = file_get_contents($filename); $gzdata = gzencode($input, 9); return $gzdata; } $gzdata = pack_to_gz("file.txt");

Questions about programming?Chat with your personal AI assistant