Tue 21 Feb 2006
Ever wanted to syndicate your own podcasts but didn’t want to do very much work? Have ftp access and PHP support? Here is a quick and dirty solution that generates an RSS feed based on the .mp3 files in the current directory by looking at the file names and modification time only.
How does this work? Simply put the config.php and pod.php into your web-accessible directory. Change the settings in config.php to match your site and then submit the URL of pod.php to the RSS reader/podcast client. The script automatically generates the XML every time it is queried by the client. The published date is the last modified date, the build date is the current date and the item description and title are the filenames sans .mp3. With the system in place, the only thing left to do is upload the .mp3 file into the directory and the podcast client should download the mp3 next time it checks the RSS feed.
(pod.php)
del.icio.us |
digg