Jump to content

Newbie help with Get ID3 function


ice1000

Recommended Posts

I'm trying to just test out the Get ID3 function form Sourceforge.[url=http://getid3.sourceforge.net/]http://getid3.sourceforge.net/[/url]

The readme file says:
[quote]
Usage
=====
require_once('/path/getid3.php');
$getID3 = new getID3;
$fileinfo = $getID3->analyze($filename);

See structure.txt for the returned data structure.

*>  For an example of a complete directory-browsing,      <*
*>  file-scanning implementation of getID3(), please run  <*
*>  /demos/demo.browse.php                                <*

See /demos/demo.basic.php for a very basic use of getID3() with no
fancy output, just scanning one file.[/quote]

I can't get anything to work.

I tried this:
[code]<HTML>
<BODY><?
include ('C:\Program Files\xampp\htdocs\getid3\demos\demo.basic.php');
$filename = 'Adiemus-Adiemus.mp3';
require_once('getid3.php');
$getID3 = new getID3;
$fileinfo = $getID3->analyze($filename);?>
</BODY>
</HTML>[/code]
and I get

analyze($filename);?>

in the browser.

What am I doing wrong?
Link to comment
https://forums.phpfreaks.com/topic/13798-newbie-help-with-get-id3-function/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.