include("/file.php") - document root
I may be losing my mind. I swear I've been able to use something like
And it would grab file.php located in the document root no matter where that line of code was in the directory structure. But for the life of me I can't find an environment that respects that.
I know there are a bizillion functions available on php.net for setting $_SERVER['document_root'] but I was hoping to avoid that by using the almighty single '/'.
Am I losing my mind?
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)