Combine/Concatenate MP3s on Server Using PHP
mp3, php
Solution
If you can access the shell from within PHP on your environment, I would just call out to the shell (with the backtick operator) and use SoX.
Problem
I have a site that will be hosting small MP3 files. I want to create a utility that will allow me to combine the mp3 files together to create a single MP3 file. I'm somewhat new to PHP but not new to programming. Ideally, I would have a function that let me specify the a starting file and then append the second file to the existing file. ``` function appendMP3(originalMP3, newChunk){ originalMP3 = originalMP3 + newChunk; return newMP3 } compilation = append(compilaton, "sound.mp3"); ``` Where do I start? Are there any existing resources?