Page 1 of 1

Retrieve version number

Posted: Fri Jul 20, 2007 9:51 pm
by WaldoMonster
Is it possible to retrieve the GETID3_VERSION without parsing a file?

Posted: Fri Jul 20, 2007 10:28 pm
by Allan Hansen
The global constant GETID3_VERSION has been made a class constant in 2.x.

You can access it through getid3::VERSION

Posted: Sat Jul 21, 2007 5:42 am
by WaldoMonster
I'm not so familiar with classes.
I assume that this is correct syntax?

Code: Select all

if (defined('getid3::VERSION')) echo getid3::VERSION;

Posted: Sat Jul 21, 2007 8:59 am
by Allan Hansen
WaldoMonster wrote:I'm not so familiar with classes.
I assume that this is correct syntax?

Code: Select all

if (defined('getid3::VERSION')) echo getid3::VERSION;
Actually I have no idea. I never use the defined() function.

However this should work:

Code: Select all

include "getid3.php";
echo getid3::VERSION;

Posted: Sat Jul 21, 2007 8:54 pm
by WaldoMonster
Allan thanks for the feedback.

PS
On the main website http://www.getid3.org/ I read that:
v2.0.0-b4 cannot write any tags (yet)
And in the change log from getID3() 2.0.0b4 I read:
Tag writing support: ID3v1
Tag writing support: APEtag
Tag writing support: FLAC
Tag writing support: Ogg Vorbis
Tag writing support: Lyrics3
Isn't it time to update the main site?

Posted: Mon Jul 23, 2007 3:05 pm
by Allan Hansen
WaldoMonster wrote: Isn't it time to update the main site?
It is. We are slow...