I'm trying to remove the ID3v1 tag from a file, and later I will need write a new tag to some files. The two demos that demonstrate the 'write' library show two totally different ways of setting up the write library, neither of which work for me. I've already had to replace all instances of eregi with preg_match to make the library work, but I'm not sure what the problem is now.
First I try to include the write library as per the demo.simple.write.php like so:
- Code: Select all
require_once('../getid3/write.php');
results in the error ...
- Code: Select all
Cannot redeclare class getid3_lib
-----------------------------------
And when I try to include the write library as per the demo.write.php file:
- Code: Select all
getid3_lib::IncludeDependency(GETID3_INCLUDEPATH.'write.php', __FILE__, true);
results in the error ...
- Code: Select all
Call to undefined method getid3_lib::IncludeDependency()
------------------------------------
This has been driving my crazy for the last week, I could really use a solution! I am using GetID3 version 1.7.9 (i couldn't find 2.0.0 anywhere...) on my local server which I believe is using PHP5
