The Giants lost their season-high fifth straight game and sixth in seven to drop a season-worst eight games under .500 (14-22). San Francisco is back home for 10 games on the heels of a disappointing 1-5 road trip that featured a three-game sweep at Pittsburgh after a losing series in Philadelphia.
With one out, Ruiz chopped a grounder off Tyler Walker (1-1) to second baseman Eugenio Velez, whose throw home pulled Bengie Molina off the plate and allowed pinch-runner So Taguchi to score after he advanced on a wild pitch. Pinch-hitter Greg Dobbs followed with an RBI single that chased Walker.
Rollins found his stroke in a hurry. He missed hitting for the cycle by one hit for the 16th time in his career.
Batting leadoff and starting at shortstop, he grounded out in his first two at-bats before connecting for his third home run of 2008 in the fifth. His drive into the left-field seats off the first pitch from Pat Misch pulled Philadelphia within 4-3. He singled in the seventh for his fifth multihit game this year, then doubled in the eighth.
What a nice homecoming, too. He was playing back home in the Bay Area in front of many family and friends.
Rollins missed a month with a sprained left ankle. The Giants will get their star shortstop back for Saturday's game when 11-time Gold Glover Omar Vizquel makes his season debut following left knee surgery Feb. 27.
Hamels allowed four runs and six hits. Tom Gordon pitched a scoreless eighth and Brad Lidge finished for his ninth save in as many chances, striking out the side while allowing one hit.
Emmanuel Burriss hit a two-run triple as San Francisco took the lead in the fourth. He also singled twice for his first career three-hit game.
Misch, making his second start of the year, missed another chance to pick up his first major league victory. The lefty allowed four runs and six hits in six innings, struck out four and walked three in his sixth career start.
Ruiz put the Phillies up 1-0 with his second-inning RBI single. The Giants tied it in the bottom of the third when Fred Lewis singled in a run.