ORLANDO, Fla. (AP) -- Carmelo Anthony scored 16 of his 40 points in the fourth quarter, helping the New York Knicks outlast the Orlando Magic 114-106 on Saturday night. J.R. Smith added 18 points off the bench and Tyson Chandler had 14 points and 12 rebounds. The Knicks have won two straight overall and four in a row over the Magic, dating back to last season. Arron Afflalo and Jameer Nelson each had 29 points to lead the Magic, and Nik Vucevic contributed 11 points and 18 rebounds. Orlando outrebounded New York 45-40, but had 14 turnovers as it extended its longest losing streak of the season to eight games. All of the losses have come since the injury of starting forward Glen Davis, who continues to rehab his sprained left shoulder.