Yngvarr

Generation

generate functionSat, 07 Jan 2023

gzencode and save archive

function gzencode_and_save($archive_name, $data) { $file_path = $archive_name . '.gz'; $fp = gzopen($file_path, 'w9'); gzwrite($fp, $data); gzclose($fp); return $file_path; }

Questions about programming?Chat with your personal AI assistant