Code Monkey home page Code Monkey logo

php-mp3info's Introduction

php-mp3info is a mp3info (http://ibiblio.org/mp3info/) bindings for PHP.

REQUIREMENTS 

	$ apt-get install php5-dev libncurses-dev

INSTALLATION 

	$ phpize
	$ ./configure
	$ make
	$ make install

Enable extension in PHP

	$ echo "extension=mp3info.so" > /etc/php5/apache2/conf.d/mp3info.ini
	$ echo "extension=mp3info.so" > /etc/php5/cli/conf.d/mp3info.ini
	$ /etc/init.d/apache2 restart

USAGE

	mp3_get_info( [Path to mp3 file] );

EXAMPLE OUTPUT

	Array
	(
	    [seconds] => 343
	    [frames] => 13155
	    [badframes] => 0
	    [id3] => Array
		(
		    [title] => Eve
		    [artist] => Emancipator
		    [album] => Soon It Will Be Cold Enough
		    [year] => 2006
		    [comment] =>
		)

	    [header] => Array
		(
		    [sync] => 4094
		    [version] => 1
		    [bitrate] => 10
		    [freq] => 0
		    [padding] => 0
		    [extension] => 0
		    [mode] => 1
		    [mode_extension] => 2
		    [copyright] => 0
		    [original] => 1
		    [emphasis] => 0
		)

	)

php-mp3info's People

Contributors

lukaszkujawa avatar

Stargazers

Peshmerge avatar JT5D avatar  avatar  avatar Mark Holtz avatar Andie Zhu avatar Marek Będkowski avatar Daniel LaBarge avatar Igor Skrynkovskyy avatar kainabel avatar sasezaki avatar

Watchers

Eddie Espinal avatar aokihu avatar Peshmerge avatar James Cloos avatar Esteban Novo avatar

Forkers

imclab

php-mp3info's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.