• PHP Help
  • MP3 Recording - How would you approach this unique idea?

Hello. Big thanks in advance for any suggestions you offer. I'll start by saying I haven't written any code for this idea yet as I wanted to get your opinions first.

I'd like to be able to offer a way to record specific mp3 files where the filenames are determined from a separate text file.

For example, I'd like to have a CSV text file that lists a series of files vertically. Certain files can be 're-recorded' by the user.

For example on the browser a user would see a sequence of files:

ms1234.mp3
ms6577.mp3
vt5676.mp3
ms6787.mp3
vt6767.mp3
ms6767.mp3

All files can be played....however...the files starting with 'vt' would also be clickable and pre-recordable from the browser. This new recording is then stored in a directory on the server. Essentially, 'replacing' the old file.

This doesn't seem like it would be 'difficult' yet I'm having a hard time knowing where to start.

Any suggestions? My skills are moderate with PHP. Very appreciated.

    As Weedpacket points out, you probably want your audio recording to happen on the front end -- e.g., in a user's web browser or some other client program. PHP usually only runs on the server, and could only record audio if you had a mic plugged in there -- probably not very useful.

    PHP might be helpful in storing the new recording in a directory on the server. Your web browser could POST the new recording to the server and PHP could take care to store it in a suitable location. You'll need to be careful about letting a web browser specify where the file gets stored. If you don't carefully plan how it works, a bad guy might find a way to overwrite (or read) important/secret files on your server.

      Write a Reply...