Jump to content

Path issue I'm struggling with because I'm tired. :P


OldWolf

Recommended Posts

Background: Whenever I write a package of some kind intended to be included into a bigger piece, I set up a constant for the path to that package, so that when I include files within the package, I can do PATH . 'included.php', when it's located in the root of the package.

 

Problem: The package I'm working on right now will not always be in the same place, so my constant has to be figured out dynamically.  Essentially, what I'd like to do is get the path from the original file to the included package.

 

I know there's a simple solution here, but I'm so darn sleepy I just can't think of it!

 

Thanks!

Archived

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

×
×
  • Create New...

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.