hi
I have a file, index.php that's including another file in an other directory, say, /classes/class1.php.
From class1.php, I want to require_once additional files from that directory, but it appears that the PHP is looking at everything pertaining to the first file, index.php, in the require_once filepath.
Within the class1.php, I want to say require_once("class2.php") and I want it to look in /classes.
So, what's the best way to get the actual file location for a given file, NOT pertaining to any includes or etc??? I don't want to hardcode the full path because I'll be moving the files around to different servers. Is there a way to determine a given file's location on the fly, without being affected by any previous includes/requires?
Thanks
frizzo