From few months my users want me to write script for conversion of audio files to mp3...
Right now, everyday i got e-mail with subject "change it for me to mp3, thank you bye bye :*".
I don't want do it anymore so i decided to write a PHP front end for command line conversion...
I stuck on executing conversion... i can't do this from PHPAccount but i can't do this from root (i'm a sysadmin so i know the risk and i don't want add sudo for php).
Right now i create account called "mp3" with user access rights.
From this account (mp3) conversion is possible.
Question is, it it possible to run this command form php, using mp3 account ?
Code: Select all
"mplayer -vc null -vo null -ao pcm:fast:waveheader source.flac && lame -v -q 2 temp.wav output.mp3"Any ideas for make it usable and safe ?
Regards