Page 1 of 1

Problem about exec shell command

Posted: Fri Jun 16, 2006 2:07 pm
by yue520
Hey guys:

I am trying to execute a shell command in PHP page.

The command is
convert inputfile.jpg outputfile.ppm

it suppose to generate a outputfile.ppm in the current or desired directory.

what I did was:

exec("convert uploads/dino_gif.gif Pop/dino_gif.ppm"); I also tried system(..); But none of these generate anything. Anybody have any ideas?

Thanks
:D

Posted: Fri Jun 16, 2006 2:40 pm
by anjanesh

Posted: Fri Jun 16, 2006 2:51 pm
by yue520
shell_exec("convert uploads/dino_gif.gif Pop/dino_gif.ppm");

doesn't work

Posted: Fri Jun 16, 2006 3:00 pm
by anjanesh
Do you need SSH enabled to get exec and shell_exec to work ?