diff options
Diffstat (limited to 'apps/media/getID3/demos/demo.cache.mysql.php')
-rw-r--r-- | apps/media/getID3/demos/demo.cache.mysql.php | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/apps/media/getID3/demos/demo.cache.mysql.php b/apps/media/getID3/demos/demo.cache.mysql.php new file mode 100644 index 00000000000..537b2f0ceb6 --- /dev/null +++ b/apps/media/getID3/demos/demo.cache.mysql.php @@ -0,0 +1,29 @@ +<?php +///////////////////////////////////////////////////////////////// +/// getID3() by James Heinrich <info@getid3.org> // +// available at http://getid3.sourceforge.net // +// or http://www.getid3.org // +///////////////////////////////////////////////////////////////// +// // +// /demo/demo.cache.mysql.php - part of getID3() // +// Sample script demonstrating the use of the DBM caching // +// extension for getID3() // +// See readme.txt for more details // +// /// +///////////////////////////////////////////////////////////////// + +require_once('../getid3/getid3.php'); +getid3_lib::IncludeDependency(GETID3_INCLUDEPATH.'extension.cache.mysql.php', __FILE__, true); + +$getID3 = new getID3_cached_mysql('localhost', 'database', 'username', 'password'); + +$r = $getID3->analyze('/path/to/files/filename.mp3'); + +echo '<pre>'; +var_dump($r); +echo '</pre>'; + +// uncomment to clear cache +//$getID3->clear_cache(); + +?>
\ No newline at end of file |