Setup getID3

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
RobbieL
Forum Commoner
Posts: 31
Joined: Fri Mar 23, 2007 5:57 pm

Setup getID3

Post by RobbieL »

Has anyone had any experience with the getID3 script at all? Had a small idea for a project, and getID3 was idle for what I wanted to do, but setting it up isn't going to well.

When I unzip the file and stick it on my web server, all I get is an error saying my $root_path doesn't exist. I set the root path in the demo.browse.php file, so I can't see what the problem is.

Anyone else come across this when using it at all?
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

If you are having specific code problems, post your error messages and relevant code.
RobbieL
Forum Commoner
Posts: 31
Joined: Fri Mar 23, 2007 5:57 pm

Post by RobbieL »

Big apologies for my late reply. Net went down not long after posting, and has only just come back up a few hours ago.

Thanks for the reply, Jcart. The error is a very simple: "$root_path not exist". In the config file it gives you an option to set the $root_path, which I did, but still get the same, small error.
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

Post by s.dot »

Well, that's a very simple error. :)
$root_path does not exist -- you're giving a bad path.. assuming the script is correct with it's coding.
Are you using a relative path or an absolute path?

I'd go with an absolute path in a script config file.

Code: Select all

$root_path = '/home/me/';
Or something similar.

You can check yourself using a simple code:

Code: Select all

<?php

echo is_dir('the value you set for $root_path') ? 'yep, $root_path exists' : 'could not find $root_path ;(';
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
Post Reply