Modano pulled within two points of 1,300. Now in his 19th season, he would become the 31st NHL player to surpass that plateau.
"A couple of bang-bang plays, a couple of pucks lying around and I took advantage of them," Modano said.
Martin Biron, who stopped 22 shots, said Philadelphia's penalty killing played a huge role in the win. The Flyers held the Stars scoreless on all five power plays, including three in the last 12 minutes.
"That's two games now that we got a kill in the last minutes of the game," Biron explained. "I don't think they got a shot in the last minute today. A lot of blocked shots, screen plays that we are cutting, or we're keeping the play to one side of the ice. It makes it a lot easier for the guys to make their reads and make it easier for me."
Dallas goalie Marty Turco, playing in his 400th game, had 21 saves.
The Flyers took the lead at 3:15 of the first period when Upshall took a pass on the stick from Joffrey Lupul and shoveled the puck into the net while sliding on one knee.
Wilson tied it at 11:33 with a wrist shot past Biron's glove side. It was his first goal since March 2004 with Pittsburgh.
Knuble put the Flyers ahead 2-1 at 16:00 when he muscled between Dallas defenders Mike Ribeiro and Trevor Daley and scored with a forehand shot.
Dallas made it 2-all when Modano ripped a rebound of a shot by Loui Eriksson into the net at 2:30 of the second period.
Carter and Modano traded one-timers off passes from behind the net to leave the score tied at 3 after two periods.
Carter scored at 14:22 after taking a pass from Scott Hartnell. Modano got his second goal of the night at 17:26, with Daley getting the assist.
Carter tied Buffalo's Thomas Vanek for the NHL lead with 15 goals.
Dallas coach Dave Tippett said a slow start hurt the Stars, who fought back from deficits of 1-0, 2-1 and 3-2.
"We didn't start very well at all," Tippett explained. "We had a lot of deer in headlights. Once we got engaged we were OK."
Philadelphia's Andreas Nodl had an apparent goal disallowed in the first period when the referee ruled the puck was frozen under the goalie.
Dallas center Steve Ott sat out with a broken hand. ... Defenseman Matt Niskanen was a healthy scratch. ... Wilson played in his 350th game. ... Hartnell and defenseman Kimmo Timonen played in their 100th games for the Flyers.
Copyright by STATS LLC and The Associated Press
Arena: Wells Fargo Center Location: Philadelphia, Pennsylvania
Referees: Paul Devorski, Tim Peel Linesmen: Pierre Champoux, Jay Sharrers
Attendance: 19,171 (98.3% full)
Team Stat Comparison
Power Play Goals
Power Play Opportunities
Shots on Goal
Scottie Upshall (3)
Assist: Joffrey Lupul
Landon Wilson (1)
Assist: Darryl Sydor
Mike Knuble (9)
Assist: Simon Gagne
Mike Modano (7)
Assists: Loui Eriksson, Mark Parrish
Jeff Carter (15)
Assist: Scott Hartnell
Mike Modano (8)
Assists: Trevor Daley, Brad Richards
Mike Knuble (10)
Assists: Mike Richards, Simon Gagne