Safari won't recognize quicktime written with readfile()

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
skullmunky
Forum Newbie
Posts: 12
Joined: Fri Apr 17, 2009 10:25 pm

Safari won't recognize quicktime written with readfile()

Post 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()?
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

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

Post by John Cartwright »

Code: Select all

header("Content-type: video/quicktime");
Try it with the space, and yes it does matter :)
skullmunky
Forum Newbie
Posts: 12
Joined: Fri Apr 17, 2009 10:25 pm

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

Post 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.
Post Reply