genericnumber1 Posted October 17, 2006 Share Posted October 17, 2006 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? Link to comment https://forums.phpfreaks.com/topic/24262-directory-version-of-__file__/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.