I am using a global.php file that I'm including in my scripts but I would like it to be more easily accessible. Currently I have to reference it like this:
include("../../globals.php")
The problem is that it makes it tedious for me to maintain my code if I were ever to move the calling application. I would prefer to refer to it as a ROOT document and treat it like this:
include("/globals.php")
This would allow me to call it from the root directory from ANYWHERE (anywhere beneath it that is)... The problem I'm having is that I can't. PHP says the file can't be found. Am I using the wrong syntax? Is there a better way to do this?
Thanks!
~Carlos