ice1000 Posted July 5, 2006 Share Posted July 5, 2006 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 nofancy 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? Quote Link to comment https://forums.phpfreaks.com/topic/13798-newbie-help-with-get-id3-function/ Share on other sites More sharing options...
realjumper Posted July 5, 2006 Share Posted July 5, 2006 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 Quote Link to comment https://forums.phpfreaks.com/topic/13798-newbie-help-with-get-id3-function/#findComment-53626 Share on other sites More sharing options...
ice1000 Posted July 5, 2006 Author Share Posted July 5, 2006 Tried <?php. No difference. Quote Link to comment https://forums.phpfreaks.com/topic/13798-newbie-help-with-get-id3-function/#findComment-53629 Share on other sites More sharing options...
kenrbnsn Posted July 5, 2006 Share Posted July 5, 2006 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 Quote Link to comment https://forums.phpfreaks.com/topic/13798-newbie-help-with-get-id3-function/#findComment-53631 Share on other sites More sharing options...
ice1000 Posted July 6, 2006 Author Share Posted July 6, 2006 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. Quote Link to comment https://forums.phpfreaks.com/topic/13798-newbie-help-with-get-id3-function/#findComment-53645 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.