Daily Archives: June 8, 2012

MP3 streaming for apple iphone with php readfile file_get_contents fail

For the actual content, see: ¬†http://mobiforge.com/developing/story/content-delivery-mobile-devices   But I must jot the solution down, as I spent a great deal of time struggling with setting headers and calling readfile($filename) with php to make ipod/iphone/ipad play/stream mp3, to no avail. On a related note, I had to do header(“location: <url to mp3>”) as a workaround for […]