I'm using OSX and MAMP. In my mac terminal, running the following commands gives the following output
whoami gives... pengkong
ffprobe -version gives... ffprobe version 3.3.2 Copyright (c) 2007-2017 the FFmpeg developers...
which ffprobe gives... /usr/local/bin/ffprobe
Using PHP
echo exec('whoami'); also gives... pengkong
echo exec('ffprobe -version'); gives empty back
echo exec('/usr/local/bin/ffprobe -version'); gives libpostproc 54. 5.100 / 54. 5.100
Why am i unable to run ffprobe without specifying the absolute path /usr/local/bin/ffprobe using PHP with the exec() function?