Certain command not working in exec()
Posted: Wed Feb 10, 2010 7:58 am
I have installed Ghost Script and Image Magick on my Windows server, and tested converting a pdf to image files via the command line.
This works fine. I have written the following script to allow users to upload PDFs and have the system automatically convert the file for them:
Obviously there's more than that, but this is the only portion that is not working. If I run any other command in place of the convert command, it works fine,
this is the only command that is not working. I have set all of the permissions on all of the files and folders involved to allow the IUSR for this domain to
access them, but it still does nothing. The owrst part is that it returns no error, so I can't tell what's wrong. This is driving me crazy, any help would be GREATLY appreciated. Also, the full drive letter paths are present in the actual script, I excluded them here. If I run this command exactly as it is (without the escape characters of course) in command line, it works fine.
This works fine. I have written the following script to allow users to upload PDFs and have the system automatically convert the file for them:
Code: Select all
$Xstring = "convert \"". $PDFfile ."\" -colorspace RGB -geometry 1024 \"output.png\"";
$tmp = exec($Xstring, $output);
this is the only command that is not working. I have set all of the permissions on all of the files and folders involved to allow the IUSR for this domain to
access them, but it still does nothing. The owrst part is that it returns no error, so I can't tell what's wrong. This is driving me crazy, any help would be GREATLY appreciated. Also, the full drive letter paths are present in the actual script, I excluded them here. If I run this command exactly as it is (without the escape characters of course) in command line, it works fine.