Jump to content

Archived

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

ice1000

Newbie help with Get ID3 function

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?

Share this post


Link to post
Share on other sites
Not sure if this will help but if you are using php 5 it doesn't let you get away with '<?' like php4 ect does. You need '<?php' instead....at least that is what I have discovered

Share this post


Link to post
Share on other sites
I believe that you should not be including then demo script into your script. That is there for you to look at and use as an example. Remove that line.

Ken

Share this post


Link to post
Share on other sites
ok, [i]seems[/i]  to work now. I had a bad setting in my XAMPP.
Let's see if I can figure this out!

Thanks for the help.

Share this post


Link to post
Share on other sites

×

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.