Substitute finfo and apache_request_headers for limited PHP servers