I'm having a ridiculous amount of trouble with this. I was told on this forum that using the $_FILE['name']['type'] to validate that the user submitted a video is stupid, so I thought I'd use ffmpeg to check if it's a video. The following command is all I need:
Code: Select all
ffmpeg -i /path/to/video/test.wmvCode: Select all
echo exec('ffmpeg -i /path/to/encoder/test.wmv');If you guys could help me out, I'd appreciate it. The long and short of it is that I can't get exec() or system() to return the output of the command. I've tried using the second parameter of exec() to populate an array, but again, the array is null.
Please note that the command works seamlessly when ran from the server, as opposed to my php script.