Welcome Guest, Not a member yet? Register   Sign In
Trouble implementing getID3 custom library
#6

[eluser]ScottBruin[/eluser]
As a followup, I got this working as Elliot mentioned by making the following changes to the getid3.php file:
* renamed it Getid3.php, moved to /application/libraries/Getid3.php
* left all the other files in their getid3 folder, and put that, too, in /application/libraries/
* added the following code about class Getid3 in the above file:
Code:
if (!defined('GETID3_INCLUDEPATH')) {
    foreach (get_included_files() as $key => $val) {
        if (basename(strtolower($val)) == 'getid3.php') {
            define('GETID3_INCLUDEPATH', dirname($val).DIRECTORY_SEPARATOR.'getid3'.DIRECTORY_SEPARATOR);
            break;
        }
    }    
}

This will set GETID3_INCLUDEPATH so that it is not set later in the class.

From there, you can do a simple $this->load->library('Getid3'); and use it as $this->getid3->method();


Messages In This Thread
Trouble implementing getID3 custom library - by El Forum - 04-17-2008, 07:03 PM
Trouble implementing getID3 custom library - by El Forum - 04-20-2008, 05:03 PM
Trouble implementing getID3 custom library - by El Forum - 04-20-2008, 05:32 PM
Trouble implementing getID3 custom library - by El Forum - 04-20-2008, 06:08 PM
Trouble implementing getID3 custom library - by El Forum - 04-20-2008, 09:54 PM
Trouble implementing getID3 custom library - by El Forum - 04-24-2008, 05:02 PM
Trouble implementing getID3 custom library - by El Forum - 06-04-2008, 03:06 AM



Theme © iAndrew 2016 - Forum software by © MyBB