You are here: Re: [PHP] Embedded player « PHP « IT news, forums, messages
Re: [PHP] Embedded player

Posted by "Rodolfo Andrade" on 01/19/06 13:59


You can use readdir() function for list the files. Here's a sample code from

if ($handle = opendir('/path/to/files')) {
echo "Handler: $handle\n";
echo "Files:\n";
while (false !== ($file = readdir($handle))) {
echo "$file\n";

I don't know how that music player works, but since it uses XML for
playlists, I think you can use readdir() then pass the results to XML.

----- Original Message -----
From: Jedidiah
Sent: Thursday, January 19, 2006 9:36 AM
Subject: [PHP] Embedded player

Hi. I have been wanting to do something on my site for some time and was
recently told that it could be accomplished.

I started a daily devotion on our church website a few weeks ago, so I
changed all of my files to .php and began using a MySQL database.

I have a sermons page ( with a table with links to
..wma sermons. When clicked in Firefox, it prompts to download. What I want
is to be able to embed a player that will stay on that page and play all of
the files in the table.

I have found a player like this at
There is also a Windows Media style player that will do the same thing. The
problem is I either have to create each individual sermon with an embedded
player in a new page, or create a playlist. I will eventually have way to
many sermons to use a playlist. I am sure there must be some way to tell
each file in the table to open in that player, but I am not familiar yet
with programming yet. I have php for dummies which I started reading, but I
am not sure it will do what I want.

Thanks so much,




[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

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