DIY podcasting PHP script for sharing MP3s

DIY podcasting PHP script for sharing MP3s

Dsc05179-1-1If you want to podcast your mp3s but you don’t want to figure out blogging, RSS, MIME enclosures, just use this single (free) PHP script to turn your folder of mp3s into a bonafide podcast. Thanks Canton! Link.

0 thoughts on “DIY podcasting PHP script for sharing MP3s

  1. Comic_Strip_Blogger says:

    cool, at last some software hack, pt!

  2. joshd1313 says:

    For what I was looking for this code seemed to be a better fit. Instead of having to build a text file for each MP3, it will automatically create a description from the id3 tag(i.e. Title, Artist, Album). It is also free and very well commented.

  3. vcao says:

    Copy and paste the script below into a text editor. Configure all the required variables (e.g. file path and URL to your mp3s.)

    Save it on your webserver, somewhere nearby your mp3s. Name it something like ‘music-feed.php’. The URL to this php file will be the URL listeners will use to subscribe to your feed. It’s common practice to add a little orange XML button like that links to your feed from some standard web page that talks about it. Like this one, which links to my own music feed:

    For each mp3 that you want to include in your podcast, create a correspondingly named text file that contains a little bit of information about the mp3. (Just a line or two. Basic HTML is okay.) This marks your mp3 as “ready for distribution.”

    So, if you have a mp3 called ‘loud-song.mp3’ then, in the same directory as the mp3, make a text file called ‘loud-song.txt’.

    That’s all. Enjoy!

Discuss this article with the rest of the community on our Discord server!

current: @adafruit - previous: MAKE, popular science, hackaday, engadget, fallon, braincraft ... howtoons, 2600...

View more articles by Phillip Torrone


Maker Faire Bay Area 2023 - Mare Island, CA

Escape to an island of imagination + innovation as Maker Faire Bay Area returns for its 15th iteration!

Buy Tickets today! SAVE 15% and lock-in your preferred date(s).