demo.cache.dbm.php 1.3 KB

123456789101112131415161718192021222324252627282930
  1. <?php
  2. /////////////////////////////////////////////////////////////////
  3. /// getID3() by James Heinrich <info@getid3.org> //
  4. // available at https://github.com/JamesHeinrich/getID3 //
  5. // or https://www.getid3.org //
  6. // or http://getid3.sourceforge.net //
  7. // //
  8. // /demo/demo.cache.dbm.php - part of getID3() //
  9. // Sample script demonstrating the use of the DBM caching //
  10. // extension for getID3() //
  11. // see readme.txt for more details //
  12. // ///
  13. /////////////////////////////////////////////////////////////////
  14. die('For security reasons, this demo has been disabled. It can be enabled by removing line '.__LINE__.' in demos/'.basename(__FILE__));
  15. require_once('../getid3/getid3.php');
  16. getid3_lib::IncludeDependency(GETID3_INCLUDEPATH.'extension.cache.dbm.php', __FILE__, true);
  17. $getID3 = new getID3_cached_dbm('db3', '/zimweb/test/test.dbm', '/zimweb/test/test.lock');
  18. $r = $getID3->analyze('/path/to/files/filename.mp3');
  19. echo '<pre>';
  20. var_dump($r);
  21. echo '</pre>';
  22. // uncomment to clear cache
  23. // $getID3->clear_cache();