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
https://forums.phpfreaks.com/topic/171762-php-exec-gm-convert-problem/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.