Hey!
I have serious problems grasping the this class-thing.
Scenario: I have a class i've written myself that is supposed to read and store id3-tags from mp3-files
Outside the class i have a function that starts looping thru a folder with mp3s, and for every mp3-folder i create an instance of the class
$mp3object = new mp3(parameters);
then i try to access the functions of the class like
$mp3object->returnComment(); (example)
No go!
Getting errormsg a la -> Fatal error: Call to a member function on a non-object in /var/www/html/msdmp3.php on line 36
If I take the instance of the class out from the function (and the call to the function) it works great. Like
<?php
classstuff here works
The full source is @ http://www.campkongo.com/mp3.txt
someone have any idea what i'm doing wrong ? I've tried browsing every guide and book I have about classes but as far as i know i'm not doing anything wrong 🙁
// Daniel