Remove all instances of DOCUMENT_ROOT  and use SCRIPT_FILENAME to get real path on local system