dounangqie4819 2014-04-25 05:16
浏览 40
已采纳

如何让exec在IIS 6.0上运行

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?

  • 写回答

1条回答 默认 最新

  • drq1257 2014-04-25 06:35
    关注

    Try this

    $command = "convert fdfdf.jpeg dfdf2.jpeg 2>&1";
    exec($command, $output);
    var_dump($output);
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 Stata 面板数据模型选择
  • ¥20 idea运行测试代码报错问题
  • ¥15 网络监控:网络故障告警通知
  • ¥15 django项目运行报编码错误
  • ¥15 请问这个是什么意思?
  • ¥15 STM32驱动继电器
  • ¥15 Windows server update services
  • ¥15 关于#c语言#的问题:我现在在做一个墨水屏设计,2.9英寸的小屏怎么换4.2英寸大屏
  • ¥15 模糊pid与pid仿真结果几乎一样
  • ¥15 java的GUI的运用