Replace fopen/fread with file_get_contents