<?php
define('S_ROOT', dirname(__FILE__).DIRECTORY_SEPARATOR);if(system("ffmpeg.exe -y -i 22.mp3 1224545545496.mp3")){
    echo 'ok';
}else{
    echo 'failed';
    }
?>在服务器。上传了个 ffmpeg.exe 视频转换,执行上面的代码 不生效。
可是在。winxp 5.1就可以。怪
PHP 都是。php 5.28  权限问题。也设置过。。也不得。高手帮一帮

解决方案 »

  1.   


    <?php
    define('S_ROOT', dirname(__FILE__).DIRECTORY_SEPARATOR);if(system("D:\web\wwwroot\ffmpeg\ffmpeg.exe -y -i D:\web\wwwroot\ffmpeg\22.mp3 D:\web\wwwroot\ffmpeg\1224545545496.mp3")){
        echo 'ok';
    }else{
        echo 'failed';
        }
    ?>上面的代码。也不得。在XP。得。。真怪。。
      

  2.   

    你直接在命令行敲ffmpeg.exe -y -i 22.mp3 1224545545496.mp3  看看能不能转换