Do $_SERVER["SERVER_NAME"]; and $_SERVER["DOCUMENT_ROOT"]; always resolve to the same directory? Is there a scenario where they wouldn’t?
EDIT:
To clarify, I KNOW these are not the same thing- I’m trying to establish only whether SERVER_NAME will always map to the DOCUMENT_ROOT. i.e., if by following each of them, one will always arrive at same physical location on the servers file system.
but yes, it DOES aim to the same directory (everytime)