D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
proc
/
self
/
root
/
home
/
markniuj
/
bazmeasar.com
/
admin
/
Filename :
download.php
back
Copy
<?php // Define the directory where audio files are stored $audio_directory = "uploads/audio/"; if (isset($_GET['audio_filename'])) { $audio_filename = $_GET['audio_filename']; // Ensure the requested file exists $file_path = $audio_directory . $audio_filename; if (file_exists($file_path)) { // Set the appropriate headers for the file download header('Content-Type: application/octet-stream'); header('Content-Disposition: attachment; filename="' . $audio_filename . '"'); header('Content-Length: ' . filesize($file_path)); // Output the file content readfile($file_path); exit; } else { echo "File not found."; } } else { echo "Invalid audio file."; }