I've read everything in the archives about exec(), system(), and passthru(), but I can't get this to work.
I'm trying to invoke ImageMagik's convert function from a php script. I can do this:
system("convert") or die("error");
and get the help for convert, but when I try this:
system("convert -border 10x10 filename1 filename2") or die("error");
I get:
error
Anyone know why I can't provide arguments to convert? I've also tried using exec and passthru. Convert has execute permissions for all users and the command works fine from the apache users shell. Incedentally, I can do:
system("ping -c 10 www.yahoo.com") or die('"error"); no problem.
Any help would be appreciated.
Mike