if (!exec($ffmpegDo)) { $error[] = ERROR_EXEC_FFMPEGDO; }
You see, it’s simple. If exec is executed, fine, else, return error.
The problem, the exec is getting executed here, but I also have the error.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Maybe you should read the function description. It doesn’t return a Boolean. It returns the last line of the output.
What is
$ffmpegDoand what does it output?Maybe you should supply the
&$return_varparameter. And check the return code. Ex.: