[Preston] Streaming mp3 files

stephenjohnson stephenjohnson at xriz.com
Tue Apr 20 21:25:32 BST 2004


Apache is not running with php so I shows the php file as a text file so you
need to get php running with apache

 

  _____  

From: preston-bounces at mailman.lug.org.uk
[mailto:preston-bounces at mailman.lug.org.uk] On Behalf Of bob 2p2
Sent: 20 April 2004 21:01
To: preston at mailman.lug.org.uk
Subject: [Preston] Streaming mp3 files

 

Hello all, new to the list and pretty new to linux and was wondering if you
might be able to help with a task i've set myself.

I have been trying to set up my system so i can remotely access my mp3's. I
followed a tutorial in linux format mag to use php and apache to slap a web
based interface on the front. I have installed mpeg123 to play the mp3's
themselves. Apache and PHP are up and running, and i have opened up /dev/dsp
to all users as the tutorial suggests however when i open the page that
should play my mp3 file the script doesn't appear to work. Code for the page
itself is as follows

::

<html><head><title>MP3 page</title></head>
<body><pre>
<?
shell_exec("/usr/bin/mp3 play /tune.mp3");
?>
</pre></body></html>

::

The only thing i can spot that may not be right is that apache appears to
run as "nobody". Willl this prevent it from accessing my soundcard or should
the fact that it is open to all users override this? Oh and this is all
under slackware 9.1.

Thanks in advance!

 

Bob




  _____  

Help STOP spam with the new <http://g.msn.com/8HMAEN/2731??PS=>  MSN 8 and
get 2 months FREE*

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.lug.org.uk/pipermail/preston/attachments/20040420/fe5d796a/attachment.html


More information about the Preston mailing list