当我在主机面板上使用命令行时,
sox -m '|sox /home/stockchu/public_html/content/watermark_audio.mp3 -p pad 4 repeat 5' /home/stockchu/public_html/content/sound.mp3 /home/stockchu/public_html/content/sound_watermarked3.mp3
它正在工作!但是当我在PHP上做同样的事情时,
$com="sox -m '|sox ".$_SERVER["DOCUMENT_ROOT"]."/content/watermark_audio.mp3 -p pad 4 repeat 5' ".$_SERVER["DOCUMENT_ROOT"]."/content/sound.mp3 ".$_SERVER["DOCUMENT_ROOT"]."/content/sound_watermarked3.mp3";
echo($com."<br>");
exec($com);
什么都没发生!
怎么了?请帮忙。
答案 0 :(得分:0)
有几种选择:
sox
。您可以在终端which sox
来查找完整路径