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
<?php | |
//Get the directory to zip | |
$filename_no_ext= $_GET['directtozip']; | |
// we deliver a zip file | |
header("Content-Type: archive/zip"); | |
// filename for the browser to save the zip file | |
header("Content-Disposition: attachment; filename=$filename_no_ext".".zip"); |
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
<?php | |
//Get the directory to zip | |
$filename_no_ext= $_GET['directtozip']; | |
// we deliver a zip file | |
header("Content-Type: archive/zip"); | |
// filename for the browser to save the zip file | |
header("Content-Disposition: attachment; filename=$filename_no_ext".".zip"); |