Yngvarr

Generation

generate functionSat, 07 Jan 2023

gzencode and save archive

<?php function gz_encode_save($path,$file){ $gz = gzencode(file_get_contents($file), 9); $fp = fopen($path, "w"); fwrite($fp, $gz); fclose($fp); } gz_encode_save('yourfile.gz','yourfile.txt'); ?>

Questions about programming?Chat with your personal AI assistant