Page 1 of 1

Safari won't recognize quicktime written with readfile()

Posted: Fri Apr 17, 2009 10:31 pm
by skullmunky
I'm trying to use readfile() to write out a quicktime file. It works fine in Firefox, but Safari isn't recognizing it as a valid quicktime file. Here's my test code:

Code: Select all

 
header("Content-type:video/quicktime");
readfile("mymovie.mov");
 
are there other headers that Safari wants? Also - should I be using a different method instead of readfile()?

Re: Safari won't recognize quicktime written with readfile()

Posted: Sat Apr 18, 2009 12:15 am
by John Cartwright

Code: Select all

header("Content-type: video/quicktime");
Try it with the space, and yes it does matter :)

Re: Safari won't recognize quicktime written with readfile()

Posted: Sat Apr 18, 2009 1:04 pm
by skullmunky
ah, mon dieu :)

thanks, so that works a little better - but it only works for some files, not all. I have a half dozen quicktimes; one of them works, but the others still give me the empty quicktime question mark in Safari. (all still work in Firefox). something else strange - I tried this on two different servers; on each, only one of the files works, but they're different ones! curious.