I have a very similar situation to the person who asked: Can I serve MP3 files with PHP? Basically I am trying to protect mp3 files from direct download, so users have to go
Remove header("Content-Transfer-Encoding: binary"); And you'll be set!
header("Content-Transfer-Encoding: binary");