realpath the viewfile to make sure it exists, if DOCUMENT_ROOT is set then be sure the file is in its realpath