I need help to modify this script.
I use it to record mp3 streaming feeds, and it works fine, but I need to make some alterations to it.
First: The script flushes the mp3 to a local folder called mp3/ in the same server. I need to change that, so the script uploads the mp3 file to an FTP instead of writing the file locally.
Second: Since this script needs to be running all the time, I want to make sure that if the streaming feed goes down, the script doesn't stop too, so the script needs to be running all the time, even if the streaming feed(s) goes down.
Third: I need to query the HOST IP:PORT from a mysql table, what's happening now with the script is that it only works the first feed available in the mysql table, I need it to stay and work for all the feeds at the same time.
Please let me know if you are interested, I'll provide the script files.