【问题标题】:PHP: shell_exec Permissions on Windows ServerPHP:Windows 服务器上的 shell_exec 权限
【发布时间】:2015-10-19 13:49:45
【问题描述】:

我有以下问题:如果我在 Windows Server 2012 上通过 Shell (cmd.exe) 执行 Shell-Paramter,它会完美执行。但是,如果我通过 PHP (shell_exec) 执行相同操作,它会执行,但无法访问模板文件。

aerender 错误:找不到具有给定名称的渲染设置模板。

这里是代码

PHP:

<?php
chdir('C:\\Program Files\\Adobe\\Adobe After Effects CC 2015\\Support Files\\');
shell_exec('aerender -project C:\server\htdocs\ae\final3\final.aep 
-comp "clouds-   rotation-low" -RStemplate "E2Z640blur" 
-OMtemplate "E2Z640" -output C:\server\htdocs\cache\clouds-rotation-low.avi')  
?>

【问题讨论】:

    标签: php shell windows-server-2012 shell-exec after-effects


    【解决方案1】:

    是的,发生这种情况是因为当 PHP 打开 cmd 时,它不会按标准加载 PATH 变量,我认为有办法解决这个问题,或者您可以使用绝对路径进行 aerender IE。 C:\aerender\aerender

    【讨论】:

      【解决方案2】:

      好的,现在可以了!我只是将 Windows 中的 apache2 服务更改为以管理员身份运行

      【讨论】:

        猜你喜欢
        • 2016-02-16
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2012-04-05
        • 2015-02-27
        • 1970-01-01
        相关资源
        最近更新 更多