Connect
To Top
read()) { $ps1 = strpos(strtolower($entry), $filter1); if (!(($ps1 === false) || ($ps1 === false))) { $items[$entry]['mtime'] = filemtime($entry); } $ps2 = strpos(strtolower($entry), $filter2); if (!(($ps2 === false) || ($ps2 === false))) { $items[$entry]['mtime'] = filemtime($entry); } } $d->close(); arsort($items); } // the playlist is built in an xspf format // first, we'll add an xml header and the opening tags... header("content-type:text/xml;charset=utf-8"); echo "\n"; echo "\n"; echo " 2005 Couple's Retreat\n"; echo " \n"; // ...then we loop through the array... foreach($items as $key => $value) { $title = substr($key, 0, strlen($key) - 2); echo " \n"; echo " " . $creator . "\n"; echo " " . $title . "\n"; echo " " . $url . '/' . $key . "\n"; echo " " . $url . '/' . $fdl_script . $key . "\n"; echo " \n"; } // ...and last we add the closing tags echo " \n"; echo "\n"; /* * That's it! You can feed this playlist to the SWF by setting this as it's 'file' * parameter in your HTML page. */ ?>