SAN FRANCISCO -- Rookie Joe Panik tripled and scored on Gregor Blanco's single in the eighth inning, capping a comeback that lifted the San Francisco Giants to a 6-5 victory over the Philadelphia Phillies on Saturday afternoon.
After losing 5-3 in 10 innings in the opener of the three-game series Friday night and falling behind 5-1 Saturday, the Giants used a four-run sixth and Blanco's second of two run-scoring singles to win for just the second time in the past eight games.
Panik, who also contributed an RBI single in the sixth, led off the eighth with a shot to right-center in the lefty-lefty matchup with the Phillies' fourth pitcher, Antonio Bastardo (5-7).
Another lefty, Jake Diekman, relieved Bastardo at that point and surrendered Blanco's tiebreaking hit, a hard grounder into left field. Blanco, a substitute left fielder who entered the game as a sixth-inning pinch hitter, finished 2-for-2.
Left-hander Jeremy Affeldt (3-1), the fifth Giants pitcher, got the win after pitching a scoreless eighth inning and getting Phillies first baseman Ryan Howard, who had three hits, to ground out to open the ninth.
Former closer Sergio Romo came on to retire two of the three batters he faced to record his first save since June 20, his 23rd overall.
Left fielder/first baseman Michael Morse had two doubles and a triple for the Giants, who were out-hit 13-11 by the Phillies.
Howard went 3-for-5 with a double and three RBIs. Philadelphia center fielder Ben Revere had a double among four hits.
The loss was the third in four games for the Phillies on their five-game California swing that concludes Sunday.
Howard hit an RBI single in a two-run third inning and a two-run single in a three-run fifth as the Phillies sent Giants starter Tim Hudson to an early shower. Second baseman Chase Utley scored in each of the innings following a single and an RBI double.
Down 5-1, the Giants rallied to tie the game in the sixth with the help of a dropped popup near the mound.
Morse drove in the first run of the inning with his first double, ending the day for Phillies starter Kyle Kendrick.
Panik, the Giants' second baseman, hit an RBI single off Phillies reliever Mario Hollands, and pinch hitter Blanco did the same to Hollands' replacement, right-hander Justin De Fratus, to narrow the gap to 5-4. Panik's hit scored third baseman Pablo Sandoval, who reached base when his high pop fly fell between Howard and Utley, with Utley getting an error for picking up the ball and throwing errantly to second base in an attempt to force catcher Buster Posey.
Center fielder Angel Pagan's sacrifice fly tied the game at 5.
Neither starter got a decision.
Seeking his first win since July 25, Kendrick pitched five-plus innings, allowing four runs, only three of which were earned. He struck out one, walked two and allowed five hits, including a solo home run by Giants right fielder Hunter Pence to open the scoring in the bottom of the first.
In failing to win for a fifth consecutive start, Hudson was pulled after the first four batters he faced in the fifth inning reached base. He was charged with five runs in his four-plus innings, surrendering eight hits and a season-worst-tying three walks. He struck out three.
The four-inning stint was Hudson's shortest of the season.
The home run was Pence's 16th of the year, tying him with Morse, who homered Friday night, for the team lead.
NOTES: Both teams own better records on the road than at home. The Phillies are 28-33 on the road. They are just 26-36 at home. The Giants own a losing record (31-32) at home. They are 33-26 on the road. ... Phillies manager Ryne Sandberg said before the game he will continue to play his veteran players at least through Sept. 1, when rosters can expand. ... Giants manager Bruce Bochy disclosed he met with OF Gregor Blanco late Friday night to talk about baserunning. Bochy was upset that Blanco was caught off third base on a safety squeeze bunt by SS Brandon Crawford in San Francisco's 5-3, 10-inning loss. Blanco entered the game as a pinch runner.