You are here: Re: Storing mpeg's and audio files « PHP Language « IT news, forums, messages
Re: Storing mpeg's and audio files

Posted by Harris Kosmidhs on 09/11/07 09:28

Kevin Raleigh wrote:
> I would like to create a searchable database containing audio messages and
> video messages.
> Would I just create a file path to the folder containing the audio and video
> files?
> I would also like to use PHP to list just the last N messages.
>
> How does Amazon store it's audio files?
>
> Kevin

The DB scheme can be the same. But instead of a binary BLOB you can have
a varchar holding the filename (or directory).
For example SELECT filename FROM myadio ORDER BY date_stored DESC LIMIT
0,10 (last ten)

Then for each filename you can get the contents of tour file.

Hope it helped

Harris

 

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

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