Any idea why I can execute command from Command Line but not From PHP exec()
问题 OK, I have done some creative searches and am kind of hitting a road block. I am trying to use the linux program "sox." I am trying to call it from my PHP script. The script DOES work if I use the command line. However, when I use PHP exec, it does not work. Example: sox file1.mp3 file2.mp3 tempfile.mp3 -V3 ("V3" specifies a verbose output) When executing in the command line as "User X" or as root, I am able to create the new file. However, when I execute the command as: <?php exec('sox file1