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? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.