Jump to content


Photo

Newbie help with Get ID3 function


  • Please log in to reply
4 replies to this topic

#1 ice1000

ice1000
  • New Members
  • Pip
  • Newbie
  • 7 posts

Posted 05 July 2006 - 11:05 PM

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

The readme file says:

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.


I can't get anything to work.

I tried this:
<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>
and I get

analyze($filename);?>

in the browser.

What am I doing wrong?

#2 realjumper

realjumper
  • Members
  • PipPipPip
  • Advanced Member
  • 399 posts

Posted 05 July 2006 - 11:13 PM

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

#3 ice1000

ice1000
  • New Members
  • Pip
  • Newbie
  • 7 posts

Posted 05 July 2006 - 11:33 PM

Tried <?php. No difference.

#4 kenrbnsn

kenrbnsn
  • Staff Alumni
  • Advanced Member
  • 8,235 posts
  • LocationHillsborough, NJ, USA

Posted 05 July 2006 - 11:49 PM

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

#5 ice1000

ice1000
  • New Members
  • Pip
  • Newbie
  • 7 posts

Posted 06 July 2006 - 01:03 AM

ok, seems  to work now. I had a bad setting in my XAMPP.
Let's see if I can figure this out!

Thanks for the help.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users