The Philadelphia Flyers were the teachers and New York Islanders rookie goaltender Rick DiPietro was an unwilling student.
In his worst outing of the season, DiPietro allowed five goals on 21 shots as Dan McGillis had a goal and two assists to help the Flyers to a 5-2 victory on Friday night.
"Every goalie has a game where he lets in a couple of goals he'd like to have back," DiPietro said. "I have to learn from my mistakes and try not to let them happen again."
Simon Gagne, Daymond Langkow, Jody Hull and Ruslan Fedotenko also scored for the Flyers, who extended their unbeaten streak against New York to eight games (7-0-1).
Roman Cechmanek made 23 saves for his 21st win as the Flyers moved within two points of the Atlantic Division-leading New Jersey Devils.
Mariusz Czerkawski and Mark Lawrence scored for the Islanders, who lost their third straight game and league-leading 32nd of the season.
Philadelphia took advantage of two power plays in the first period for a 2-0 lead.
Gagne opened the scoring at 15:53 on a power play when he beat DiPietro with a slap shot for his 23rd goal of the season.
Philadelphia got another power-play goal with 34 seconds left in the period when McGillis was credited with his 10th goal. Keith Primeau's centering pass hit McGillis' skate while he was being hooked down by Tim Connolly and the puck was deflected past DiPietro.
"(Connolly) hooked me around backwards," McGillis said. "I didn't know where it hit me."
Czerkawski made it 2-1 at 13:04 of the second during a 4-on-3 power play when he converted Brad Isbister's cross-ice pass.
A television timeout at 14:17 helped the Flyers restore a two-goal lead. Langkow took a pass from Eric Desjardins at the left post and tried to stuff it past DiPietro's pad. The goal light never came on, and referee Rob Shick ruled it no goal.
Initially, video replay judge Tom Monahan agreed with Shick after looking at the team's video feeds. But the game broke for commercials, and FoxSportsNet showed replays from various angles, and one of them showed the puck crossed the line. Monahan signaled down to the officials that it was a goal.
Islanders coach Butch Goring, livid on the bench, said less after the game.
"No comment," Goring said. "I don't care."
Nedved shines for Rangers
SUNRISE, Fla. -- Peter Nedved scored two goals, including an empty-netter, to lead the New York Rangers to a 4-2 victory over the Florida Panthers.
It was quite a bounceback from the 6-3 loss the Rangers absorbed against the Buffalo Sabres at Madison Square Garden Tuesday.
"We can feel sorry for ourselves and play the way we played against Buffalo and just play the rest of the 27 games and start looking for the summer," Nedved said. "Or we go out there and don't think about the end result and just take it one game at a time and see what we can do about it."
Mark Messier scored for the second consecutive game after going 18 straight without a goal, and Michael York also scored for the Rangers, who won for only the second time in seven games.
Rob Niedermayer and Viktor Kozlov scored for Florida, which had its three-game home winning streak stopped.
After the game, the Panthers announced they traded captain Scott Mellanby to the St. Louis Blues in exchange for junior right wing David Morisset and a 2002 draft choice. Mellanby did not play Friday night because he had the flu.
Around the rinks
Ray Ferraro and Per Svartvadet each scored two goals as the Thrashers won for the second time in 19 games by beating the Bruins, 5-1. Damian Rhodes, who won for the second time in 13 games, stopped 33 shots for the Thrashers. . . . Manny Fernandez made 28 saves against his former team and rookie Marian Gaborik scored the game-winning goal late in the second period as the Wild beat the Stars, 2-1. . . . Jeff Cowan got his first goal in 16 games, scoring unassisted on a breakaway to lift the Flames to a 5-3 victory over the Avalanche. Mike Vernon stopped a flurry of shots in the final two minutes and finished with 34 saves for Calgary. . . . Sean Burke made 38 saves for his first shutout in three months and Keith Tkachuk got his 600th career point on a first-period goal as the Coyotes blanked the Oilers, 2-0. . . . Owen Nolan of the Sharks was suspended for 11 games by the NHL for a hit that sent Dallas' Grant Marshall to a hospital with a concussion. Nolan had been suspended indefinitely by the NHL on Tuesday, pending a hearing. The San Jose captain already has missed two games.