This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function compress_file($input_file, $output_file) { | |
// Open the input file for reading | |
$input_handle = fopen($input_file, 'rb'); | |
if (!$input_handle) { | |
echo "Failed to open input file\n"; | |
return; | |
} | |
// Open the output file for writing | |
$output_handle = fopen($output_file, 'wb'); |