Código PHP:
Ver original
$id = $_GET['id_cancion']; $sql = ( "select * from archivos WHERE MD5(concat('".$key."',id)) = '$id'"); $ruta = 'CARPETA/' .$row['ruta']; exit; }
Y este es el codigo que me encontre en el manual:
Código PHP:
Ver original
To force download an mp3 file and/or prevent the mp3 from ending up in the browser's cache. This is very similiar to mindplay's example below. <?php // Only allow mp3 files $allowedFileType = "mp3"; // Set the filename based on the URL's query string $theFile = $_REQUEST['theFile']; // Get info about the file // Check the extension against allowed file types // Make sure the file exists // Set headers // This line causes the browser's "save as" dialog // Length required for Internet Explorer // Open file // Push file } // Close file exit; ?>
bueno, gracias por su ayuda, me gustaria poder resolver esto pronto...