I'm transferring all my old LP's to a 40 GB hard drive on my Linux server system (Red Hat 7.0) at home. I want to access it using a web page, and have built a MySQL database to hold information about the albums, including the path to the .mp3 file. I display the list of music, and have a link to the .mp3 file so that any browser in the house can play a recording. I also have a link to click that is supposed to start playing the recording on the server's sound card, the output of which is connected to the stereo in the living room.
It's supposed to, but it isn't working. I pass the name of the .mp3 file to play to another .php page like this:
<A HREF="PlayOnStereo.php?MDirectory=<?$Md?>&MFile=<?=$Mf?>">*</A>
PlayOnStereo.php consists of the following:
<p>Now playing <?=$MFile?>
<?
$PthName = $MDirectory . $MFile;
system("/usr/bin/mpg123 $PthName");
?>
When I click on the asterisk, I get a new page that says, "Now playing" followed by the name of the .mp3 file, but the song doesn't play.
Suggestions?
Thanks.
Regards,
Dick Steffens