-
14 votesanswersviews
使用php exec和amixer设置音量
我写了一个小的PHP脚本来控制alsa本地机器的音量: <?php # for simplicity and testing it really just executes the command: echo exec('amixer set Master 5%+') . " \n"; 现在,当我在命令行上运行此脚本时,它工作正常: $ php volume.php ...