par
Chibiliplop » 18 juil. 2013, 12:52
Merci de ta raponse pour le code c'est quelquechoses de tres simple:
$repertoire = 'C:\Users\Chibiliplop\Music\Björk';
$dir = opendir($repertoire);
while($fichier = readdir($dir))
{
echo $fichier;
}
Cela fonctionne tres bien si je l'execute dans un fichier php mais quand je passe par symfony j'ai le droit a cette erreur:
Warning: opendir(C:\Users\Chibiliplop\Music\Björk,C:\Users\Chibiliplop\Music\Björk): in C:\wamp\www\Symfony\src\Chibiliworld\SoundBundle\Controller\SoundController.php line 24
500 Internal Server Error - ContextErrorException