Running lame from php

Posted by gok on Stack Overflow See other posts from Stack Overflow or by gok
Published on 2010-05-17T17:20:06Z Indexed on 2010/05/17 18:20 UTC
Read the original article Hit count: 485

Filed under:
|
|
|

I am trying to run lame from a php script.

I have tried these, but no luck, I don't get anything returned! Any ideas?

system('lame', $returnarr);
system('lame --help', $returnarr);
exec('lame', $returnarr);
passthru('lame', $returnarr);

even this one returns nothing:

exec('which lame', $returnarr);

I am on OSX and final deployment will be on Linux. Do you have better suggestions for an automated wav->mp3 conversion? From php, should I execute a bash script that executes Lame?

© Stack Overflow or respective owner

Related posts about lame

Related posts about php