May 30, 2013
Original script directory in PHP
Bjørn Kjos-Hanssen’s Question:
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?