"We came into the locker room after the second and said, 'Keep playing the same way and things will go our way,'" Read said. "We looked for a bounce to get a goal. The first couple minutes of the third period we got a goal and were on our toes and got the momentum."
The Flyers took the lead just 1:18 later when Niemi gave up a big rebound on Erik Gustafsson's point shot that went right to Raffl in the slot.
A neutral-ice turnover by Irwin led to Giroux's 18th goal on a shot that deflected off Niemi's glove, stunning the home crowd 1:27 after Philadelphia took the lead.
Giroux also set up Voracek's late goal that sealed the win, finishing the game with a goal and two assists. San Jose matched a season worst by allowing four goals in the third period.
"They came at us hard, they made us turn the puck over," Irwin said. "A lot of it was what they did well. At the same time, that's unacceptable."
The teams traded power-play goals early in the first period, with Streit scoring on a point shot through a screen by Simmonds after Nieto was called for hooking in the offensive zone.
Nieto more than made up for his transgression the rest of the period. With Nicklas Grossmann in the box for hooking, Irwin shot the puck into the corner from his own blue line. Tommy Wingels raced to the puck to negate an icing call and sent a perfect feed to Nieto in front of the net for the deflection on his first career power-play goal.
Nieto was the recipient of another nice pass later in the period, when Brent Burns set him up with a blind, backhand pass from the corner that led to his second goal. That gave the Sharks a 2-1 lead that lasted until the third.
NOTES: Flyers D Kimmo Timonen was scratched for the second straight game with a foot injury. ... The Sharks snapped an 0-for-16 slump on the power play with Nieto's first goal.