/** * */ public static function getIncludePath() { // Get base path of GetId3() - ONCE if (null === self::$IncludePath) { foreach (get_included_files() as $val) { if (basename($val) == 'getid3.php') { self::$IncludePath = dirname($val) . DIRECTORY_SEPARATOR; break; } } } return self::$IncludePath; }