Hi izzit possible to use a php exec function to trigger a jar file using -java method? Basically I have a php file(index.php) written with the following code :
$output = exec('cd /opt/lampp/htdocs/ImageEditorFilters/; /opt/lampp/bin/jre/bin/java CBSim "/opt/lampp/htdocs/ImageEditorFilters/orginal.png" 3 "/opt/lampp/htdocs/ImageEditorFilters/new.png"');
However when I run the index.php, it doesn't trigger action.
Instead when I run this code in the terminal, it works perfectly well.
So is there any configuration needed to perform such action?
Oh btw I'm using XAMPP in linux ubuntu and CBSim.jar to convert some images.