[PHP] Probleme sur ma playlist
Yuushi_Sato
Messages postés
107
Statut
Membre
-
Yuushi_Sato Messages postés 107 Statut Membre -
Yuushi_Sato Messages postés 107 Statut Membre -
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
A voir également:
- [PHP] Probleme sur ma playlist
- Playlist collaborative spotify - Guide
- Easy php - Télécharger - Divers Web & Internet
- Créer une playlist mp3 - Télécharger - Lecture & Playlists
- Expert php pinterest - Télécharger - Langages
- Logiciel création playlist m3u - Télécharger - Lecture & Playlists