Sounds cool.
Would you consider sharing the script(s)? Have you considered putting it (them?) under some kind of open license?

Sure, but like I said it not very interesting. Also keep in mind I not an expert so the code is likely not
optimized.
here's the html file running on the local apache server:
<html>
<head>
<style type="text/css">
.inputtext { width: 800px; height: 100px; }
</style>
</head>
<body>
<form action="myform.php" method="post">
<img src="ffe-logo.png" alt="ffeb" width="600" height="200">
<p style="font-size:50px">
Music Request
</p>
<p>
<select style="font-size:40px" name="drop1" class="inputtext" id="Select1" size="20" >
<option value="3DoorsDown-BeLikeThat(NoMovieFootage).flv">3DoorsDown-BeLikeThat(NoMovieFootage).flv</option>
<option value="3DoorsDown-WhenI_mGone.flv">3DoorsDown-WhenI_mGone.flv</option>
<option value="50Centfeat.JustinTimberlake-AyoTechnology.flv">50Centfeat.JustinTimberlake-AyoTechnology.flv</option>
<option value="50Cent-InDaClub.flv">50Cent-InDaClub.flv</option>
<option value="Aaliyah-TryAgain.flv">Aaliyah-TryAgain.flv</option>
<option value="AdamLambert-ForYourEntertainment.flv">AdamLambert-ForYourEntertainment.flv</option>
<option value="AdamLambert-IfIHadYou.flv">AdamLambert-IfIHadYou.flv</option>
<option value="AdamLambert-WhatayaWantFromMe.flv">AdamLambert-WhatayaWantFromMe.flv</option>
<option value="Adele-RollingInTheDeep.flv">Adele-RollingInTheDeep.flv</option>
</select>
</p>
<p style="font-size:50px">
Select song from the dropdown
</p>
<p><input type="submit" class="inputtext" style="font-size:50px" value="Play it!"></p>
</form>
</body>
</html>
here is the php file:
<?php
$filename = '/var/www/html/request.txt';
$mpath = '/home/zerocool/Music/music_edit/';
$select = check_input($_POST['drop1']);
if (!$handle = fopen($filename, 'a')) {
echo "Cannot open file ($filename)";
exit;
}
fwrite($handle, $mpath);
fwrite($handle, $select);
fwrite($handle, "\n");
fclose($handle);
?>
<html>
<body>
your request: <?php echo $select; ?>
has been sent.
</body>
</html>
<?php
function check_input($data)
{
$data = stripslashes($data);
$data = htmlspecialchars($data);
return $data;
}
?>
here is the bash script:
#!/bin/bash
request()
{
FILENAME=/var/www/html/request.txt
FILESIZE=$(stat -c%s "$FILENAME")
if [ $FILESIZE -gt 0 ]
then
exec<$FILENAME
read line
echo $line
vlc --fullscreen --play-and-exit $line
fi
rm -rf $FILENAME
touch $FILENAME
chmod 777 $FILENAME
rplay
}
rplay()
{
fname=/home/zerocool/bash/music.txt
r=$(( $RANDOM % 334 + 1 ))
echo $r
exec<$fname
x=0
echo $x
while [ $x -lt $r ]; do
echo The counter is $x
let x=x+1
read line
done
vlc --fullscreen --play-and-exit $line
request
}
request
then the only other thing is a text file with a list of videos and paths like so:
/home/zerocool/Music/music_edit/3DoorsDown-BeLikeThat(NoMovieFootage).flv
/home/zerocool/Music/music_edit/3DoorsDown-WhenI_mGone.flv
/home/zerocool/Music/music_edit/50Centfeat.JustinTimberlake-AyoTechnology.flv
/home/zerocool/Music/music_edit/50Cent-InDaClub.flv
/home/zerocool/Music/music_edit/Aaliyah-TryAgain.flv
/home/zerocool/Music/music_edit/AdamLambert-ForYourEntertainment.flv
/home/zerocool/Music/music_edit/AdamLambert-IfIHadYou.flv
/home/zerocool/Music/music_edit/AdamLambert-WhatayaWantFromMe.flv
/home/zerocool/Music/music_edit/Adele-RollingInTheDeep.flv
hope someone finds it usefull or at least fun.