additional_plugins/serendipity_event_podcast/player/james-heinrich/getid3/demos/demo.cache.dbm.php
onli dcf32c365d
podcast 1.37.7: PHP 8 compatibility fixes (#144)
Fix some warning in the main code, update getid3
2022-11-23 15:29:25 +01:00

31 lines
1.3 KiB
PHP

<?php
/////////////////////////////////////////////////////////////////
/// getID3() by James Heinrich <info@getid3.org> //
// available at https://github.com/JamesHeinrich/getID3 //
// or https://www.getid3.org //
// or http://getid3.sourceforge.net //
// //
// /demo/demo.cache.dbm.php - part of getID3() //
// Sample script demonstrating the use of the DBM caching //
// extension for getID3() //
// 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__));
require_once('../getid3/getid3.php');
getid3_lib::IncludeDependency(GETID3_INCLUDEPATH.'extension.cache.dbm.php', __FILE__, true);
$getID3 = new getID3_cached_dbm('db3', '/zimweb/test/test.dbm', '/zimweb/test/test.lock');
$r = $getID3->analyze('/path/to/files/filename.mp3');
echo '<pre>';
var_dump($r);
echo '</pre>';
// uncomment to clear cache
// $getID3->clear_cache();