문제

I installed the software imagemagick on my server "Windows Server 2008".

In cmd it works fine, all commands work.

But when I try to do it in PHP:

$command = "convert fdfdf.jpeg dfdf2.jpeg";
exec($command, $output);

It does not work. I get a blank page and nothing happens,

I have given all the permissions I need to the following:

cmd.exe
whomi.exe
c:\ImageMagick. execute & read to iis_iusrs and everyone.

Safe Mode are off.

What else can I do to make it work?

도움이 되었습니까?

해결책

Try this

$command = "convert fdfdf.jpeg dfdf2.jpeg 2>&1";
exec($command, $output);
var_dump($output);
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top