I want to use my variables in my PHP exec function:
exec('ffmpeg -i $audio_input $audio_output');
What is the right way of doing this? I dont want to change the ffmpeg script. Is it possible?
Thanks
Use double quotes instead of single quotes:
exec("ffmpeg -i $audio_input $audio_output");
But please, go read this page: http://php.net/manual/en/language.types.string.php
exec("ffmpeg -i $audio_input $audio_output");
Check the manual for Strings here.
Use double quotes like mentioned before or
exec('ffmpeg -i '.$audio_input.' '.$audio_output);