[PHP] Probleme sur ma playlist
Yuushi_Sato
Messages postés
100
Date d'inscription
Statut
Membre
Dernière intervention
-
Yuushi_Sato Messages postés 100 Date d'inscription Statut Membre Dernière intervention -
Yuushi_Sato Messages postés 100 Date d'inscription Statut Membre Dernière intervention -
Bonjour,
voila j'ai un prebleme ici il ne liste pas le repertoire plaulist
une petite aide une infos une astuces S'il vous plait
voila j'ai un prebleme ici il ne liste pas le repertoire plaulist
<?php
function index()
{
echo "<table width=\"100%\" valign=\"top\">
<tr><td><img src=\"themes/images/playlist.gif\" border=\"0\" alt=\"-- Playlist --\"/></td></tr>
<tr><td width=\"690\" height=\"480\">
<object type=\"application/x-shockwave-flash\" data=\"player-viral.swf\" width=\"690\" height=\"480\">
<param name=\"movie\" value=\"player-viral.swf\">
<param name=\"allowfullscreen\" value=\"true\" />
<param name=\"allowscriptaccess\" value=\"always\" />
<param name=\"flashvars\" value=\"playlist_url=playlist.php?op=playlist&backcolor=DDDDDD&frontcolor=000000&lightcolor=AAAAAA&playlistsize=460&playlist=top&autostart=true&repeat=list&shuffle=false\" />
</td></tr></table>";
}
function playlist()
{
echo "<playlist>
<trackList>";
$dir = opendir('playlist');
while ($file = readdir($dir)) {
if (preg_match('/[.]mp3/', ' . $file . ')) {
echo "<track>
<location>playlist/'" . $file . "'</location>
<annotation>" . $file ."</annotation>
</track>
</trackList>
</playlist>";
}
}
}
switch ($op)
{
case "index":
index();
break;
case "playlist":
playlist();
break;
default:
index();
break;
}
?>
une petite aide une infos une astuces S'il vous plait
Configuration: Windows Vista Firefox 3.5.7
A voir également:
- [PHP] Probleme sur ma playlist
- Expert php - Télécharger - Langages
- Playlist collaborative spotify - Guide
- Easy php - Télécharger - Divers Web & Internet
- Playlist dj à télécharger gratuit - Télécharger - Lecture & Playlists
- Amok playlist copy - Télécharger - Lecture & Playlists