thanks for the notice
audio uploader that converts to MP3
Moderator: General Moderators
audio uploader that converts to MP3
I would like to make a PHP code that uploads an audio file and converts the file to mp3 before saving in the disk... can anyone suggest a tutorial or functions that can help me in my problem?
thanks for the notice
thanks for the notice
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
I believe you'll need a library or command line function (like "lame") to encode the file to mp3.
As for uploading in php.. http://php.net/features.file-upload
As for uploading in php.. http://php.net/features.file-upload
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
I'm not sure what lame's licensing terms are for things like this. I know applications can't bundle the lame encoder with them (at least, they couldn't a few years back). You might wan't to look into that.
EDIT | Also, rather than using exec() or similar, you'll probably want to use proc_open() so you can detect failures and read from stdin/stdout/stderr.
EDIT | Also, rather than using exec() or similar, you'll probably want to use proc_open() so you can detect failures and read from stdin/stdout/stderr.