Ben php bir dir listesini almak istiyveyaum
glob("*.jpg");
veya
$dir = '.'; //requested directveyay to read
$notthat = array('.', '..'); //what not to include
$listedfiles = array_diff(scandir($dir), $notthat); // removed what not to include
bu yüzden böyle bir javascript bu diziyi göndermek ister (slaytlar = $ listedfiles)
function startSlideshow(slides) { .. do something..}
Bunu yapmak için en iyi yolu nedir?