-1 |
|
http://www.onta.../mp3player/
<?php
if (!file_exists("playlist.m3u")) {
$playlist = fopen("playlist.m3u",w);
$old_umask = umask(0);
chmod("playlist.m3u",0777);
} else {
unlink("playlist.m3u");
$playlist = fopen("playlist.m3u",w);
$old_umask = umask(0);
chmod("playlist.m3u",0777);
}
fputs($playlist ,"#EXTM3U\n");
if ($handle = opendir('music')) {
while (false !== ($file = readdir($handle))) {
if ($file != "." && $file != "..") {
fputs($playlist ,"music\\".$file."\n\n");
// START DEBUG
echo "music\\".$file."<br/>\n";
// END DEBUG
}
}
closedir($handle);
}
fclose($playlist);
?>
<OBJECT ID="MediaPlayer1" CLASSID="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" CODEBASE="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"
STANDBY="Loading Microsoft Windows® Media Player components..." TYPE="application/x-oleobject" width="280" height="46">
<PARAM NAME="fileName" VALUE="playlist.m3u">
<PARAM NAME="animationatStart" VALUE="true">
<PARAM NAME="transparentatStart" VALUE="true">
<PARAM NAME="autoStart" VALUE="false">
<PARAM NAME="showControls" VALUE="true">
<param name="Volume" value="-300">
<EMBED type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" SRC="playlist.m3u" name="MediaPlayer1" width=280 height=46 autostart=0 showcontrols=1 volume=-300>
</OBJECT>
<?php $playlist = fopen("playlist.m3u",w ); chmod("playlist.m3u",0777); } else { $playlist = fopen("playlist.m3u",w ); chmod("playlist.m3u",0777); } fputs($playlist ,"#EXTM3U\n"); while (false !== ($file = readdir($handle))) { if ($file != "." && $file != "..") { fputs($playlist ,"music\\".$file."\n\n "); // START DEBUG echo "music\\".$file."<br/>\n"; // END DEBUG } } closedir($handle); } fclose($playlist); ?> <OBJECT ID="MediaPlayer1" CLASSID="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" CODEBASE="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" STANDBY="Loading Microsoft Windows® Media Player components..." TYPE="application/x-oleobject" width="280" height="46"> <PARAM NAME="fileName" VALUE="playlist.m3u"> <PARAM NAME="animationatStart" VALUE="true"> <PARAM NAME="transparentatStart" VALUE="true"> <PARAM NAME="autoStart" VALUE="false"> <PARAM NAME="showControls" VALUE="true"> <param name="Volume" value="-300"> <EMBED type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" SRC="playlist.m3u" name="MediaPlayer1" width=280 height=46 autostart=0 showcontrols=1 volume=-300> </OBJECT>
music map:
First & Andre - Widescreen.mp3
Dj Wout - Mastermind.mp3
Veel plezier dermee |