[quote]
basta inserire le canzoni nella cartella songs e avviare lo scrphpbbt via web in php

(c'e' molto disordine nel codice, appena ho tempo lo risistemo)

Questo scrphpbbt e' solo una dimostrazione, potevo usare direttamente la funzione glob(), ma preferivo usare la mia testa) [/quote]

[code linenumbers=false]<?php

# Playlist on the web
# Scr34M
#
# scr34m_php@hotmail.it
# Una sorta di playlist online, lo scrphpbbt puo' essere modificato a vostra scelta, l'unica cosa che vi chiedo e' quella di lasciare un piccolo spazzietto per i crediti
#

$cartella = 'songs'; //Nome cartella

if ($cart = opendir($cartella)) {

$contatore = 0;

while($song = readdir($cart)){
if($song != '.' and $song != '..'){
$ciao3 = array();
$ciao2 = array_push($ciao3,$song);
echo "<a href='?id=".$contatore."'>".$song."</a><br>";
$contatore++;


}

}


closedir($cart);


}

$cia_ris = $_GET['id'];



if ($cart = opendir('songs')) {
$ciao3 = array();
for ($j = 0;$j <= $cia_ris;$j++){

while($song = readdir($cart)){
if($song != '.' and $song != '..'){
$ciao2 = array_push($ciao3,$song);
echo '';
break;


}

}

}

closedir($cart);


}

echo '<object id="WindowsMediaPlayer" 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" height="40" width="180">
<param name="FileName" value="'.$song.'">
<param name="ControlType" value="1">
<param name="AutoStart" value="false">
<param name="AnimationAtStart" value="True">

<param name="ClickToPlay" value="true">
<embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/" src="songs/'.$song.'" name="WindowsMediaPlayer" controltype="1" showdisplay="0" showstatusbar="0" clicktoplay="true" height="40" width="180"></object>';

?>[/code][PHP]Playlist on the web
Source viewer