If it isn't Jochen's point about permissions: There's some warnings in the php documentation about safe mode escaping command strings, but I can't see how they apply to your example.
Pure guesswork, as I've never used WAMP but could it be a path problem? Meaning either your http server doesn't have the same path set as your shell sessions do or doesn't do a path search. Try creating a small .cmd file containing the statement "path" & see what that shows. Presumably you could work around the problem by putting the full path to convert.exe in the command. You might also like to investigate the shell_exec() function. 2009/12/11 Aaron Cooper <[email protected]> > Howdy all, > > I'm trying to throw together a small image resizing app that will always > run on a local WAMP installation for personal use. (Windows XP Pro). > > I have just installed ImageMagick on the machine to test image processing > using the CLI as I have found that using GD through PHP is a bit slow. > > I have this simple command: > convert "C:\IMAGES\Holding\*.JPG" -resize 600 "C:\Image\file1.jpg" > > Works fine when run from cmd. But when I try to run it in exec or > shell_exec, nothing. > > Does anyone have any ideas what this would be or know of a way to get some > sort of debugging info for what might be going on? > > Cheers > Aaron > > -- > NZ PHP Users Group: http://groups.google.com/group/nzphpug > To post, send email to [email protected] > To unsubscribe, send email to > [email protected]<nzphpug%[email protected]> -- Bruce Clement When a co-worker said he didn't want his kids getting the H1N1 vaccine because it was too new and "they haven't tested it enough", I blurted out something like, "So you'd rather test a new and poorly understood virus on them instead?" I'm not entirely proud of fighting vague and irrational fear of the unknown by invoking vague and irrational fear of the unknown, but I think it did make an impression. Petréa Mitchell -- NZ PHP Users Group: http://groups.google.com/group/nzphpug To post, send email to [email protected] To unsubscribe, send email to [email protected]
