Turn a directory of MP3 files into Podcasts.
Version: 1.3dir2cast is designed to turn a directory of MP3 files into Podcasts. Perfect for, say, radio shows - upload the MP3s to a folder, and use dir2cast.php as your PodCast URL.
Operating System: Linux
Please note: the config file will make more sense if you read all of this README
before trying the installation instructions.
Step 1. Edit dir2cast.ini to your taste.
Step 2. Upload dir2cast.php and dir2cast.ini to the web server.
Step 3. Upload getID3 to a folder called 'getID3'. (You can download getID3 from
the same place as dir2cast.)
CASTING SEVERAL FOLDERS FROM ONE DIR2CAST.PHP
If you have more than one folder of MP3s that you are casting, you can serve
them all from a single install of dir2cast.php, and customise dir2cast.ini for
each individual folder.
Assuming the following:
- your web root folder is called htdocs/ and this maps to http://www.mysite.com/
- you installed dir2cast to the folder htdocs/dir2cast
- you have two podcasts, and the MP3s live in htdocs/dir2cast/cast1 and
Step 1: Make 2 extra copies of dir2cast.ini (one for each cast), and then edit
to taste.(Any settings not specified will be taken from the main
dir2cast.ini - the one that is in the same folder as dir2cast.php).
Step 2: Upload these additional dir2cast.ini files to the htdocs/dir2cast/cast1/
and htdocs/dir2cast/cast2/ folders, respectively.
The podcast URLs will now be:
"PRETTY" URLS FOR YOUR PODCASTS
This hint requires your web server to be Apache with 'mod_rewrite' enabled.
From the example above, your podcast URL will be
...but much nicer would be something along the lines of
To achieve this, you must configure apache with a rewrite rule such as:
RewriteRule (.+)/rss$ dir2cast.php?dir=$1 [L]
Put this in your VHOST configuration (inside a block) or in a
.htaccess file alongside dir2cast.php .
PLEASE NOTE: just to check that you understand this section...
- If you use the RewriteRule supplied, dir2cast.php must be in the folder above
the MP3 folders. (If this is not the case, you will have to set MP3_BASE in
the ini file, and change the rule for your circumstance.)