Hi,
I am writing code to upload and download MP3 files of size around 75 MB. I would like to do this using http. I am using this code for download this.
header("Cache-control: private");
header("Content-Type: application/mp3");
header('Content-Disposition: attachment; filename='.$file_name);
header("Content-Transfer-Encoding: binary");
readfile($GLOBALS["SHOW_ARCHIVE_PATH"].$file_name);
This code only works for downloading files less than 5 MB. However I need to download larger files.
For uploading I am using the copy function. Here also it does not allow files more than 10 MB.
Can anyone help me with the code to do this?
Thanks.
MP3 Upload & Download
Moderator: General Moderators
MP3 Upload & Download
Last edited by Mahesh on Sat Apr 10, 2004 5:27 am, edited 1 time in total.
There is only one source, http://www.php.net/manual
It knows everything you wanted to know, and more
It knows everything you wanted to know, and more