Page 1 of 1

encoding a audio file as a response object

Posted: Tue Nov 25, 2008 3:38 pm
by kishan6
hi,
I have some song files in .arl format in my application server. i have to encode them and store in the webserver(for security reasons).
How can i acheive this using PHP(php in both Webserver & application Server).
If i have to construct some encoding mechanism at my "application level - php" please let me know how to do it.

Thanks in advance!!!!!

Re: encoding a audio file as a response object

Posted: Tue Nov 25, 2008 4:18 pm
by veridicus
I would encode them from the command line using standard utilities and place the encoded version in a directory exposed by the web server. Then the web server can simply serve each file directly. You may want PHP to help browse these files, but I don't see the need for PHP to be involved in the encoding.

Re: encoding a audio file as a response object

Posted: Tue Nov 25, 2008 11:38 pm
by kishan6
thanks for the reply.

i have read ,about mime encoding, that we can use base64 encoding tecnique . can you please guide me how to do the encoding (using base64 or any other method) using command line , with an example.?
i am using linux os on my application server.