// // available at https://github.com/JamesHeinrich/getID3 // // or https://www.getid3.org // // or http://getid3.sourceforge.net // // // // /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 // // /// ///////////////////////////////////////////////////////////////// die('For security reasons, this demo has been disabled. It can be enabled by removing line '.__LINE__.' in demos/'.basename(__FILE__)); echo '
'; echo 'Filename | Artist | Title | Bitrate | Playtime |
---|---|---|---|---|
'.htmlentities($ThisFileInfo['filenamepath']).' | '; echo '' .htmlentities(!empty($ThisFileInfo['comments_html']['artist']) ? implode(' ', $ThisFileInfo['comments_html']['artist']) : chr(160)).' | ';
echo '' .htmlentities(!empty($ThisFileInfo['comments_html']['title']) ? implode(' ', $ThisFileInfo['comments_html']['title']) : chr(160)).' | ';
echo ''.htmlentities(!empty($ThisFileInfo['audio']['bitrate']) ? round($ThisFileInfo['audio']['bitrate'] / 1000).' kbps' : chr(160)).' | '; echo ''.htmlentities(!empty($ThisFileInfo['playtime_string']) ? $ThisFileInfo['playtime_string'] : chr(160)).' | '; echo '