Title says it all, is there a way to get the directory that an included file is in?
Right now if I'm including the file "foo.php" I'd have to substr(__FILE__, 0, -7) to get the dir... is there a different way?
Directory version of __FILE__?
No replies to this topic
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users