shell exec命令没有运行ffmpeg

时间:2014-07-24 04:31:20

标签: shell ffmpeg exec

我正在编写这个简单的命令来执行ffmpeg但是shell_exec没有给出任何结果。否则它将给出ls。

的结果

这是我的代码 {

<html>
<body>
<?php
$output = shell_exec('ffmpeg -version');
echo "<pre>$output</pre>";
?>
</body>
</html>

}

1 个答案:

答案 0 :(得分:0)

如果您使用PHP与WAMP服务器,请检查以下是否在php中启用shell_exec

Enable shell_exec() in wamp server

相关问题