The link to play it updates the database and then outputs the mp3 - I want people to open or save it, so the code for that I used is...
Code: Select all
header('Content-type: audio/mpeg');
header("Content-Disposition: attachment; filename='$filename'");
readfile("Location:http://www.thebridgechurch.co.uk/sermons/$filename");What happens is that only 225-243bytes are output rather 9MB!
If I use just
Code: Select all
header("Location:http://www.thebridgechurch.co.uk/sermons/$filename");Why does readfile truncate themp3? And how can i get it to work so the file can be opened or saved?