Further, the second argument to `substr` here is hacky. It will work because DOCUMENT_ROOT's length can't be negative but you really just want the default second argument to indicate you want the rest of the string.