Having no success with ffmpeg. How do i check if a file even exists?
I have the file
$mp3 = $_SERVER['DOCUMENT_ROOT']."/wp-content/youtube_channels/major.mp3";
I've attempted to find the file with exec()
but nothing is returned. How do i solve? I'm totally lost.
var_dump(exec("/usr/include/ffmpeg -i $mp3"));
All that is returned string(0) ""
when i check phpinfo ffmpeg is installed and when i type exec("whereis ffmpeg")
what is returned is /usr/include/ffmpeg
.
I've been stuck on this for 2 days, how do i solve this?