// // available at http://getid3.sourceforge.net // // or http://www.getid3.org // ///////////////////////////////////////////////////////////////// // // // /demo/demo.simple.php - part of getID3() // // Sample script for scanning a single directory and // // displaying a few pieces of information for each file // // See readme.txt for more details // // /// ///////////////////////////////////////////////////////////////// echo '
'; echo 'Filename | Artist | Title | Bitrate | Playtime |
---|---|---|---|---|
'.$ThisFileInfo['filenamepath'].' | '; echo ''.(!empty($ThisFileInfo['comments_html']['artist']) ? implode(' ', $ThisFileInfo['comments_html']['artist']) : ' ').' | ';
echo ''.(!empty($ThisFileInfo['comments_html']['title']) ? implode(' ', $ThisFileInfo['comments_html']['title']) : ' ').' | ';
echo ''.(!empty($ThisFileInfo['audio']['bitrate']) ? round($ThisFileInfo['audio']['bitrate'] / 1000).' kbps' : ' ').' | '; echo ''.(!empty($ThisFileInfo['playtime_string']) ? $ThisFileInfo['playtime_string'] : ' ').' | '; echo '