Is there a way to get the absolute path of a file while having it included in another script?
So I'm trying to include a file that's in folder A while I'm in folder B but it keeps trying to refer to folder B's location.
I've tried dirname
, $SERVER['PHP_SELF']
, cwd()
, but they still return a relative path.