Jump to content

Archived

This topic is now archived and is closed to further replies.

genericnumber1

Directory version of __FILE__?

Recommended Posts

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?

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.