You are here: Re: How to send media (wmv, mpg, avi, mp3, doc) via PHP to a client and what HTML code is required? « All PHP « IT news, forums, messages
Re: How to send media (wmv, mpg, avi, mp3, doc) via PHP to a client and what HTML code is required?

Posted by musiccomposition on 09/13/06 01:58

What you want to send is the Content-type header with a mime type. (eg
header("Content-type: application/pdf");)
You can find lots of mime types at
http://www.iana.org/assignments/media-types/.

Mr-t wrote:
> Hi,
>
> I'm currently building a server with a browser so yhou can online view
> your images, movies, documents, music
>
> However I need to send it to the client, but I cannto figure out (nor
> find on php.net, google) which header() statements I require to make
> it work on the client.
>
> Also I am having trouble finding which HTML code I require. Currently
> I have WindowsMediaPlayer in embedded code... But to verify this, my
> php script should also be able to dump a file with the correct headers
> to the client.
>
> What Header() do I need for:
>
> PDF?
>
> MPG? WMV? AVI?
>
> MP3?
>
> DOC?
>
> Please help me... Don't worry, I'm building Open source :P

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация