2015-10-19 54 views
1

上了shell_exec权限我有以下问题:如果我将Windows Server 2012中上执行通过shell(CMD.EXE)壳牌,放慢参数它执行完美。但是,如果我通过PHP(shell_exec)执行相同的操作,但无法访问模板文件。PHP:在Windows Server

aerender ERROR: No render settings template was found with the given name.

这里是代码

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') 
?> 

回答

0

好的,现在它的工作!我刚刚在Windows中更改了apache2服务以管理员身份运行

0

呀,这是因为PHP打开时,在CMD它不会加载通过标准的PATH变量,我觉得这是一种解决方法,或者你可以使用绝对路径来提供曝光 即。 C:\aerender\aerender

+0

我已经更改了路径。我找到了解决方案 – dazzafact