Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Playing MP4

Status
Not open for further replies.

felix001

Technical User
Nov 15, 2008
102
GB
does anyone know how to get my browser to play mp4 files rather then just trying to download them ??
 
send a header?
From the top of my head (so untested):
Code:
header('Content-disposition: inline');

+++ Despite being wrong in every important aspect, that is a very good analogy +++
Hex (in Darwin's Watch)
 
Even sending a header will mean nothing if the browser does not have a plugin it can use to play the file in the browser itself.

Basically unless the browser knows what to do with a file it will attempt to download it.

IE will usually try to get Windows Media Player to play it, unless something else is associated with the type of file.

However this actually has nothing to do with PHP.

A simple link can make the file play if the browser knows what to do with it.


----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
My browser i will be using is safari, and internet explorer...
When I use Safari to open mp3`s it opens them in quicktime but not when I open mp4`s it just downloads them....????

 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Sponsor

Back
Top