Hello all!
I have had a script that I want to implement, but am not getting the result I wanted. I am prompted to download and the process begins, but I am only get 1 kb of the file. Is the code incorrect or is there something that my host needs to allow PHP to do? Here is my code:
header('Content-Description: File Transfer');
header('Content-Type: audio/mpeg');
header('Content-Disposition: attachment; filename='.basename($Song_Title));
header('Content-Transfer-Encoding: binary');
header('Expires: 0');
header('Cache-Control: no-cache, must-revalidate');
header('Pragma: no-cache');
header('Content-Length: ' . filesize(' MY URL /'.$Song));
fread(' MY URL /' .$Song);
Tim