I have a VPS web server with PHP installed and have several folders with audio recordings from school. I would like to generate an RSS feed for each folder, listing the .mp3 files in alphabetical order (since they contain a number prefix like 001-filename). Is there any way to do this that currently works? I have found these 2 scripts online but none of them seem to work for me.
N°2 seems like the most simple script, but if I edit the variables and upload it to the appropriate folder, it does not seem to work. This is the result I get navigating to my page:
?xml version="1.0"?> 0) { $files[]['name'] = $file; $files[]['timestamp'] = filectime($file); } } closedir($dir); // natcasesort($files); - we will use dates and times to sort the list. for($i=0; $i "; echo " "; echo " ". $feedBaseURL . $files[$i]['name'] . " "; echo " ". $feedBaseURL . $files[$i]['name'] . " "; // echo " ". date("D M j G:i:s T Y", $files[$i]['timestamp']) ." "; // echo " " . $files[$i]['timestamp'] ." "; echo " "; } } } ?>
This is my php -version PHP 5.6.17-0+deb8u1 (cli) (built: Jan 13 2016 09:10:12)
My end result should be this:
website.com/chemistry/ have an RSS feed for all the chemistry audio files
website.com/english/ have an RSS feed for all the english audio files