This is a caching extension for getID3(). It works the exact same way as the getID3 class, but return cached information very fast
Example: (see also demo.cache.mysql.php in /demo/)
Normal getID3 usage (example):
require_once 'getid3/getid3.php'; $getID3 = new getID3; $getID3->encoding = 'UTF-8'; $info1 = $getID3->analyze('file1.flac'); $info2 = $getID3->analyze('file2.wv');
getID3_cached usage:
require_once 'getid3/getid3.php'; require_once 'getid3/getid3/extension.cache.mysql.php'; $getID3 = new getID3_cached_mysql('localhost', 'database', 'username', 'password'); $getID3->encoding = 'UTF-8'; $info1 = $getID3->analyze('file1.flac'); $info2 = $getID3->analyze('file2.wv');
Supported Cache Types (this extension)
SQL Databases:
cache_type cache_options ------------------------------------------------------------------- mysql host, database, username, password
DBM-Style Databases: (use extension.cache.dbm)
cache_type cache_options ------------------------------------------------------------------- gdbm dbm_filename, lock_filename ndbm dbm_filename, lock_filename db2 dbm_filename, lock_filename db3 dbm_filename, lock_filename db4 dbm_filename, lock_filename (PHP5 required)
PHP must have write access to both dbm_filename and lock_filename.
Recommended Cache Types
Infrequent updates, many reads any DBM Frequent updates mysql
Located in /sources_custom/getid3/extension.cache.mysql.php (line 72)
getID3 | --getID3_cached_mysql
Inherited from getID3
getID3::$encoding
getID3::$encoding_id3v1
getID3::$filename
getID3::$option_extra_info
getID3::$option_max_2gb_check
getID3::$option_md5_data
getID3::$option_md5_data_source
getID3::$option_sha1_data
getID3::$option_tags_html
getID3::$option_tags_process
getID3::$option_tag_apetag
getID3::$option_tag_id3v1
getID3::$option_tag_id3v2
getID3::$option_tag_lyrics3
getID3::$tempdir
Inherited From getID3
getID3::getID3()
getID3::analyze()
getID3::CalculateCompressionRatioAudio()
getID3::CalculateCompressionRatioVideo()
getID3::CalculateReplayGain()
getID3::ChannelsBitratePlaytimeCalculations()
getID3::CharConvert()
getID3::CleanUp()
getID3::error()
getID3::GetFileFormat()
getID3::GetFileFormatArray()
getID3::getHashdata()
getID3::getid3_tempnam()
getID3::HandleAllTags()
getID3::ProcessAudioStreams()
getID3::setOption()
getID3::warning()
Documentation generated on Sun, 02 Jan 2011 23:14:12 +0000 by phpDocumentor 1.4.3