Jump to content

php exec gm convert problem


eriar

Recommended Posts

Hi all!

I have really strange problem.  I'm trying to execute this php command:

$ret1 = exec("/usr/local/bin/gm convert test.pdf test.gif", $out, $return_var);

The output is:

ret1-> string(0) "" 

out -> array(0) { }

return_var->int(1), 

and test.gif is NOT created.

 

From command line it works. ( centos 5.3, php 5.2.9, apache 2.2.3, GraphicsMagick-1.3.2 ).

This: $ret1 = exec("/usr/local/bin/gm -help", $out, $return_var); : works too, as expected.

Other commands like ls -la, whoami, etc, are working too.

 

Does anyone have a clue of how to solve this issue? Or a right question I should ask google?

 

Sorry if I'm not asking in the right place.

 

Thanks,

Eriar

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.