Fix PHP warnings for file_get_contents