Yngvarr

Generation

generate functionSat, 07 Jan 2023

pack to gz and return archive

function archive($archive_name, $file_name) { $arch = gzencode($file_name, 9); file_put_contents($archive_name, $arch); return $archive_name; } archive('archive.gz', 'file.txt');

Questions about programming?Chat with your personal AI assistant