[asterisk-users] how to read mp3

A J Stiles asterisk_list at earthshod.co.uk
Tue Jan 18 09:59:36 CST 2011


On Tuesday 18 Jan 2011, salaheddine elharit wrote:
> yes i want to know how can i do in order to read this files using apche

Either make a symbolic link to the location of the files from somewhere Apache 
knows about, using something like
# ln -s /path/to/files /path/to/webroot/mp3files/
and set its ownership using
# chown -h user:group filename
(Apache will only follow links if both ends are owned by the same user)  or  
(possibly better)  write a simple script which will read the file from its 
own location and display it on STDOUT.  If doing this you will need at least 
a content-type: header and maybe a content-length: header  (you're probably 
going to need this anyway in order to be sure you read in the whole file);  
then a single blank line with just a \n; then the actual contents of the file 
itself.

-- 
AJS

Answers come *after* questions.  It's really not hard.



More information about the asterisk-users mailing list