LearningKid Posted October 30, 2009 Share Posted October 30, 2009 Hi can anyone hlp me with wats going on here i never used imagemagic b4 now trying itt and im getting an error plz hlp <?php exec(’C:/Program Files/ImageMagick’); //the path to the PDF file $strPDF = "OTHER PLEDGES.doc"; exec("convert \"{$strPDF}[0]\" -colorspace RGB -geometry 200 \"output.gif\""); ?> Link to comment https://forums.phpfreaks.com/topic/179673-imagemagick-hlp-plz/ Share on other sites More sharing options...
lemmin Posted October 30, 2009 Share Posted October 30, 2009 Don't use backticks in the exec function; it accepts a string. Also, running that first exec isn't doing anything (if it actually works like that) because there are no parameters passed to the program (that looks like a folder?). Other than that. Does convert process a doc? I noticed your variable is named PDF so that looks confusing. Also, what does the "[0]" do after the variable? That doesn't look like it should be there either. Link to comment https://forums.phpfreaks.com/topic/179673-imagemagick-hlp-plz/#findComment-948023 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.