![]() |
Parse Podcast XML and put up instance of player
Hello all,
I am creating a podcast on a static website that uses an XML file for the podcast to work with iTunes, WinAmp, etc.... however, I would like to be able to parse the xml file and create a div with each mp3 having it's own Player. That way someone can get the podcast, or they can go directly to the page and listen to old ones right there... I have been thinking of using something like the 1 pixel out player, since it's clean and easy to use. Thanks! |
There wasn't any questions asked so I'm not really sure what's going on (unless you're just proudly announcing what you're working on).
You can parse the XML file really easily with SimpleXML, loop through all of the items displaying the required information in HTML form. Adding in the audio player is also very easy, just follow the instructions on their website for the "standalone player". |
You answered what I was asking even thought I didn't ask. :) Brain waves.
|
Is there a way to grab what number the array is on in a FOREACH loop?
ie: foreach($items as $item){ echo $item NUMBER? } |
With
PHP Code:
|
If the keys are named rather than numbered, you could do a for loop, and output the counter.
|
non php5
i'd love to indulge in XPATH on my www server, but my company doesn't/won't upgrade to php5. BAH!
|
| All times are GMT. The time now is 10:55 AM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0