Jaromir Jagr also scored for the Rangers, who had dropped four of their previous five games. The goal was the 610th of his career, tying him with Bobby Hull for 13th place on the NHL all-time list.
Joni Pitkanen scored for the Flyers, who have just one point from a shootout loss in their last nine outings. They have won only three home games this season, a league low and have not won at home since Nov. 24 when they beat Columbus, 3-2, in former Flyers coach Ken Hitchcock's debut with the Blue Jackets.
Krog's second goal of the season came during a scramble in front of the net.
New York goaltender Henrik Lundqvist made 17 saves while picking up his 20th win.
Philadelphia's Robert Esche, who made his first start in goal since a 6-2 loss at Washington on Jan. 9, had 33 saves. He was especially sharp in the first period when he stopped all 17 Ranger shots - including back-to-back saves on Jed Ortmeyer and Daniel Girardi - and thwarted the Rangers' five power plays.
Jagr put the Rangers ahead 56 seconds into the second period when he redirected Karel Rachunek's shot from near the right boards.
The Flyers tied it 1-1 at 3:24 of the period when Joni Pitkanen scored on a one-timer from the right of the crease after taking a cross-ice pass from Mike Knuble.
Notes: Peter Forsberg picked up his 602nd career assist on Pitkanen's goal, moving Jagr hit the right post midway through the third period. ... Flyers D Randy Jones suffered a separated right shoulder in the third period.