Code: Select all
$cmd = "ffmpeg";
echo "Command $cmd";
echo"RETURNED VARIABLES : <br />";
exec($cmd,$return_var);
print_r($return_var);
I have uploaded both the exe file as well as the same script to my hosting site which runs on Linux.
When i run the same code there, it shows an empty array.
Q1. Are there any settings required for the php script to execute a shell command?
Q2. Is it the compatibility issue?(Linux/Windows changeover).
Please help me with this.