Associated Press
Phillies players celebrate after their four-run rally in the bottom of the ninth inning.

PHILADELPHIA — Carlos Ruiz's game-winning, two-run hit in the ninth inning capped a frantic rally to help the Philadelphia Phillies beat the Los Angeles Dodgers 10-9 on Thursday.

Ruiz's shot bounced off the left-center field fence off Dodgers' closer Jonathan Broxton, scoring Jayson Werth and Ben Francisco. The Phillies entered the eighth inning trailing 9-2.

They scored four runs in the eighth off three relievers, then four off Broxton (4-4), who began the inning by hitting Placido Polanco and walking Mike Sweeney and Werth, then saw a potential double-play grounder go through third baseman Casey Blake's legs.

MARLINS 5, NATIONALS 0: At Washington, Ricky Nolasco rebounded from a rough start by taking a shutout into the seventh inning, Mike Stanton homered for the second consecutive game, and the Marlins beat the Nationals to complete a three-game sweep. Nolasco (13-8) struck out eight batters in six-plus innings, allowing six hits and one walk.

METS 4, ROCKIES 0: At New York, Johan Santana pitched a four-hit shutout for the Mets. Santana (10-6) won for the second time in four starts and boosted the Mets back to .500 at 57-57.

BREWERS 8, DIAMONDBACKS 4: At Milwaukee, CaseyMcGehee set a franchise record with his ninth straight hit, going 4-for-4 and leading the Brewers past Arizona. McGehee had a solo homer, a two-run double, an RBI single and another single.

GIANTS 8, CUBS 7: At San Francisco, pinch-hitter AndrewTorres hit a bases-loaded single in the bottom of the ninth inning to lift the Giants. PatBurrell hit a grand slam and solo home run and PabloSandoval also homered for San Francisco.

PADRES 3, PIRATES 0: At San Diego, Ryan Ludwick hit a two-run homer while Jon Garland and three relievers combined on a four-hitter as the Padres completed a three-game sweep of Pittsburgh.