i want to convert file.svg to file.png through batik library. i run command on shell for it, it run correctly. but by running same command in php by php function shell_exec($command), the return output is empty. my command which i want to execute through php is :
$result = shell_exec('java -jar "/var/www/CA_FQA_1_1/js/components/batik-1.7/batik-rasterizer.jar" -m image/png -d "/var/www/CA_FQA_1_1/designPNGS/batik3D.png" -w 2000 "/var/www/CA_FQA_1_1/svgFiles/batik3D.svg"');
echo $result;
the $result is empty. i also increase maximum time execution in
apache php.ini
. but still $result return empty and no png is created. command is running correctly on linux terminal. Question: ** What is problem here. help me?**