I am getting problem with ghost working in windows server 2003 (32 Bit).
In phpinfo page, it shows installed. Also, i am able to generate .png file using Command line interface, but when i am trying to generate a .png file using PHP script it is not working.
$SavedPath = "C:\\Inetpub\\vhosts\\mysite\\httpdocs\\testlib\\images\\";
$pdf_file = "C:\\Inetpub\\vhosts\\mysite\\httpdocs\\testlib\\test.pdf";
$cmd = "gs -sDEVICE=jpeg -dJPEGQ=100 -dGraphicsAlphaBits=4 -dTextAlphaBits=4 -dDOINTERPOLATE -sOutputFile=".$SavedPath."_%d.jpg -dSAFER -dBATCH -dNOPAUSE -r72x72 ".$pdf_file;
Ghostscript is installed on C:\gs\bin\gsdll32.dll.
And exe file is located on C:\gs\bin\gswin32c.exe.
Please advise me, should i have to change in environment variable in windows? I have also tried conver command instead for gs, but no luck.