Created
May 24, 2019 14:49
-
-
Save felipezarco/b2d5b8ab62cbfecd92a5f190d221c29d to your computer and use it in GitHub Desktop.
Revisions
-
Luiz Felipe Zarco created this gist
May 24, 2019 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,12 @@ header('Content-Description: File Transfer'); header('Content-Type: application/octet-stream'); header('Content-Disposition: attachment; filename='.basename($destination_name_ulaw)); header('Content-Transfer-Encoding: binary'); header('Expires: 0'); header('Cache-Control: must-revalidate'); header('Pragma: public'); header('Content-Length: ' . filesize($destination_name_ulaw)); ob_clean(); flush(); readfile($destination_name_ulaw); exit();