(Philadelphia, PA) -- Andrew Knapp singled in the winning run in the ninth inning as the Phillies walked off the Giants 6-5 in Philadelphia. Bryce Harper's solo homer in the seventh tied the game for Philly after San Francisco scored four times in the top half to take a 5-4 lead. Darin Ruf hit a three-run shot for the Giants. Wandy Peralta took the loss. The Giants host the Marlins tonight.