[FFmpeg-user] Calling FFmpeg from PHP: How to set logfile? (report)
Reindl Harald
h.reindl at thelounge.net
Sat Jul 27 22:18:06 EEST 2019
Am 27.07.19 um 21:14 schrieb Reindl Harald:
>
>
> Am 27.07.19 um 20:33 schrieb Peter B.:
>> However, "-report" only allows setting the filename by environment
>> variable - which might be a problem in some PHP environments, and it
>> somehow seems overkill to me...
>
> https://www.php.net/manual/en/function.putenv.php
but how does it matter anyways?
you are supposed to use things like
https://www.php.net/manual/en/function.exec.php when you execute
binaries like ffmpeg
and yes, ignore the other idiot, execute wahter application from PHP is
fine as long as you restrict it to an instacne for special purpose while
passthru and freinds should be diabled on random webservers
not because PHP is insecure but because the power of shell commands and
power always brings responsibility
More information about the ffmpeg-user
mailing list