basic m4v to flv conversion with ffmpeg
ffmpeg -i inputFile.m4v -f flv -ar 44100 outputFile.flv -i is the name of the m4v file -f is the output format of the new file -ar changes the sample rate of the audio
Finding Extensions in PHP without Reading the Mime Type
For all you geeks, finding an extension, cross platform, because application/type doesn’t always work with $_FILES['file']['type'] cross platform.
Restricting an input field to only numbers with preg_match_all() (PHP)
This is a pretty easy way to restrict a field to only numbers. The \D in the preg match is short for [^0-9], which will match all characters, except 0-9. I’m new to the regex, so there might be a better way to do this. But this works for me.