How to install Id3 pecl in the PHP

This command will tell you the latest version of id3. At this time it is id3-0.2.

$ sudo pecl install id3

So to install it,

$ sudo pecl install id3-0.2

For PHP cli, add this file,

/etc/php5/conf.d/id3.ini

with contents,

extension=id3.so

Now you should have id3 support.

Run this script on the command line to see,

<?php
if (function_exists("id3_get_tag")) {
    print("Jump up and down and rejoice.\n");
} else {
    print("Drink a beer and cry the blues.\n");
}
?>

For php on a web server

Add this file,

/etc/php5/apache2/conf.d/id3.ini

with contents,

extension=id3.so

References

Page Comments (Click to edit)






[Click to add or edit comments])

Please prepend comments below including a date

Design by N.Design Studio, adapted by solidGone.org (version 1.0.0)
Have a nice day.