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 15die('For security reasons, this demo has been disabled. It can be enabled by removing line '.__LINE__.' in demos/'.basename(__FILE__)); 16 17 18require_once('../getid3/getid3.php'); 19getid3_lib::IncludeDependency(GETID3_INCLUDEPATH.'extension.cache.dbm.php', __FILE__, true); 20 21$getID3 = new getID3_cached_dbm('db3', '/zimweb/test/test.dbm', '/zimweb/test/test.lock'); 22 23$r = $getID3->analyze('/path/to/files/filename.mp3'); 24 25echo '<pre>'; 26var_dump($r); 27echo '</pre>'; 28 29// uncomment to clear cache 30// $getID3->clear_cache(); 31