This works within my PHP code
$output = array();
exec("ls /Applications/XAMPP/htdocs/MY_APP/images", $output);
var_dump($output);
Now I need to use ImageMagick's "convert" command to convert a PNG file to PDF file. But the following doesn't do anything and returns no errors.
$output = array()
exec("convert /Applications/XAMPP/htdocs/MY_APP/images/test.png /Applications/XAMPP/htdocs/MY_APP/images/test.pdf", $output);
var_dump($output);
Is it a permission issue? I gave chmod 777 to the images folder. What else should I check? When I run the command from the terminal, it works fine.