Jump to content


Directory version of __FILE__?

  • Please log in to reply
No replies to this topic

#1 genericnumber1

  • Members
  • PipPipPip
  • Advanced Member
  • 1,858 posts

Posted 17 October 2006 - 08:38 PM

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?

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users