exec("lame audio.mp3 audio.wav")
Similar questions didn't helped.
This is the command that should be executed via PHP.
- The audio.mp3 file presents in the directory and no permission issues.
- Lame encoder is present at:
C:\Program Files (x86)\Lame
. This path is added into System Environmental Variables PATH. - lame command works in cmd, it displays the version as 3.99.3. (This means lame is installed and added to the PATH properly).
- The PHP file present in the folder D:\XAMPP\htdocs\demo.php. Executing
lame audio.mp3 audio.wav
via cmd in the directory D:\XAMPP\htdocs runs properly and the mp3 file is converted to wave file without any issue.
The PHP exec is alone not working. Where I am missing?
Edit: The error.log file have the following error:
'lame' is not recognized as an internal or external command, operable program or batch file.