Reputation: 792
Magic constant __DIR__
is the directory of the current script, but what if I need the directory of the script that included or required it, i.e., the original script? Is there something like a __ORIGINALDIR__
?
In particular, if the directory of the current script equals the directory of the original script then we should get __ORIGINALDIR__ === __DIR__
.
Upvotes: 1
Views: 85