“)) {
$starter=strpos($rowvalue, ““);
$stopper=strpos($rowvalue, “
“, $starter);
$amount=$stopper-$starter;
$venue=substr($rowvalue, $starter+12, $amount-12);
}
If(strpos($rowvalue, ““)){
$starter=strpos($rowvalue, ““);
$stopper=strpos($rowvalue, “
“, $starter);
$amount=$stopper-$starter;
If($team==1)$home_first_name=substr($rowvalue, $starter+9, $amount-9);
If($team==0)$away_first_name=substr($rowvalue, $starter+9, $amount-9);
}
If(strpos($rowvalue, ““)){
$starter=strpos($rowvalue, ““);
$stopper=strpos($rowvalue, “
“, $starter);
$amount=$stopper-$starter;
If($team==1)$home_last_name=substr($rowvalue, $starter+10, $amount-10);
If($team==0)$away_last_name=substr($rowvalue, $starter+10, $amount-10);
}
If(strpos($rowvalue, ““)){
$starter=strpos($rowvalue, ““);
$stopper=strpos($rowvalue, “
“, $starter);
$amount=$stopper-$starter;
If($team==1)$home_throwing_hand=substr($rowvalue, $starter+14, $amount-14);
If($team==0)$away_throwing_hand=substr($rowvalue, $starter+14, $amount-14);
}
If(strpos($rowvalue, ““)){
$starter=strpos($rowvalue, ““);
$stopper=strpos($rowvalue, “
“, $starter);
$amount=$stopper-$starter;
If($team==1)$home_wins=substr($rowvalue, $starter+6, $amount-6);
If($team==0)$away_wins=substr($rowvalue, $starter+6, $amount-6);
}
If(strpos($rowvalue, ““)){
$starter=strpos($rowvalue, ““);
$stopper=strpos($rowvalue, “
“, $starter);
$amount=$stopper-$starter;
If($team==1)$home_losses=substr($rowvalue, $starter+8, $amount-8);
If($team==0)$away_losses=substr($rowvalue, $starter+8, $amount-8);
}
If(strpos($rowvalue, ““)){
$starter=strpos($rowvalue, ““);
$stopper=strpos($rowvalue, “
“, $starter);
$amount=$stopper-$starter;
If($team==1)$home_era=substr($rowvalue, $starter+5, $amount-5);
If($team==0)$away_era=substr($rowvalue, $starter+5, $amount-5);
}
If(strpos($rowvalue, ““)){
$starter=strpos($rowvalue, ““);
$stopper=strpos($rowvalue, “
“, $starter);
$amount=$stopper-$starter;
If($team==1)$home_so=substr($rowvalue, $starter+4, $amount-4);
If($team==0)$away_so=substr($rowvalue, $starter+4, $amount-4);
$team–;
}

}
echo $away_first_name . ” ” . $away_last_name . ” (” . $away_throwing_hand . “) (” . $away_wins . “-” . $away_losses . “, ” . $away_era . ” ERA, ” . $away_so . ” K) @ ” . $home_first_name . ” ” . $home_last_name . ” (” . $home_throwing_hand . “) (” . $home_wins . “-” . $home_losses . “, ” . $home_era . ” ERA, ” . $home_so . ” K)

“.$gametime.” EST @ “. $venue;
?>

Post Game Updates
On Fathers’ Day, the Colorado Rockies finished their 3 game sweep against the Bucs.

Paul Maholm got off to a rough start, giving up 5 runs in 5 innings. Jeff Karstens and Steven Jackson finshed the game well, but the Pirate bats couldn’t quite generate the necessary run support.

McCutchen went 2-5 with 2 runs and Sanchez went 2-4 with a run and 3 RBI, but the Pirates still dropped the series finale 5-4.

hinske

Live Updates: “, $starter);
$amount=$stopper-$starter;
$good_stuff=substr($rowvalue, $starter+13, $amount-14);
if($starter>$teamchange)$home=1;
$inningarray[$counter]=$inning;
$homearray[$counter]=$home;
$playarray[$counter]=$good_stuff;
$starterarray[$counter]=$starter;
$counter++;
$starter=$starter+1;
}
}

array_multisort($inningarray, $homearray, $starterarray, $playarray);

$loopcount=0;
$currentinning=0;
$currenthalf=1;
while($loopcount$currentinning){
echo(“
Inning $inningarray[$loopcount]
“);
$currentinning++;
}
if($homearray[$loopcount]!=$currenthalf){
if($homearray[$loopcount]==0){echo(“
Away
“);$currenthalf=0;}
if($homearray[$loopcount]==1){echo(“
Home
“);$currenthalf=1;}
}
echo($playarray[$loopcount].”
“);
$loopcount++;
}

?>

“)) {
$starter=strpos($rowvalue, ““);
$stopper=strpos($rowvalue, “
“, $starter);
$amount=$stopper-$starter;
$venue=substr($rowvalue, $starter+12, $amount-12);
}
If(strpos($rowvalue, ““)){
$starter=strpos($rowvalue, ““);
$stopper=strpos($rowvalue, “
“, $starter);
$amount=$stopper-$starter;
If($team==1)$home_first_name=substr($rowvalue, $starter+9, $amount-9);
If($team==0)$away_first_name=substr($rowvalue, $starter+9, $amount-9);
}
If(strpos($rowvalue, ““)){
$starter=strpos($rowvalue, ““);
$stopper=strpos($rowvalue, “
“, $starter);
$amount=$stopper-$starter;
If($team==1)$home_last_name=substr($rowvalue, $starter+10, $amount-10);
If($team==0)$away_last_name=substr($rowvalue, $starter+10, $amount-10);
}
If(strpos($rowvalue, ““)){
$starter=strpos($rowvalue, ““);
$stopper=strpos($rowvalue, “
“, $starter);
$amount=$stopper-$starter;
If($team==1)$home_throwing_hand=substr($rowvalue, $starter+14, $amount-14);
If($team==0)$away_throwing_hand=substr($rowvalue, $starter+14, $amount-14);
}
If(strpos($rowvalue, ““)){
$starter=strpos($rowvalue, ““);
$stopper=strpos($rowvalue, “
“, $starter);
$amount=$stopper-$starter;
If($team==1)$home_wins=substr($rowvalue, $starter+6, $amount-6);
If($team==0)$away_wins=substr($rowvalue, $starter+6, $amount-6);
}
If(strpos($rowvalue, ““)){
$starter=strpos($rowvalue, ““);
$stopper=strpos($rowvalue, “
“, $starter);
$amount=$stopper-$starter;
If($team==1)$home_losses=substr($rowvalue, $starter+8, $amount-8);
If($team==0)$away_losses=substr($rowvalue, $starter+8, $amount-8);
}
If(strpos($rowvalue, ““)){
$starter=strpos($rowvalue, ““);
$stopper=strpos($rowvalue, “
“, $starter);
$amount=$stopper-$starter;
If($team==1)$home_era=substr($rowvalue, $starter+5, $amount-5);
If($team==0)$away_era=substr($rowvalue, $starter+5, $amount-5);
}
If(strpos($rowvalue, ““)){
$starter=strpos($rowvalue, ““);
$stopper=strpos($rowvalue, “
“, $starter);
$amount=$stopper-$starter;
If($team==1)$home_so=substr($rowvalue, $starter+4, $amount-4);
If($team==0)$away_so=substr($rowvalue, $starter+4, $amount-4);
$team–;
}

}
echo $away_first_name . ” ” . $away_last_name . ” (” . $away_throwing_hand . “) (” . $away_wins . “-” . $away_losses . “, ” . $away_era . ” ERA, ” . $away_so . ” K) @ ” . $home_first_name . ” ” . $home_last_name . ” (” . $home_throwing_hand . “) (” . $home_wins . “-” . $home_losses . “, ” . $home_era . ” ERA, ” . $home_so . ” K)

“.$gametime.” EST @ “. $venue;
?>

Craig Monroe was designated for assignment, and Steven Pearce was recalled from AAA-Indianapolis. Charlie Morton gives his “1st” start for the Pirates a 2nd chance. He takes the mound against Jason Hammel, tonight at 8:10 at Coors Field.

Post Game Updates
Tonight’s loss to the Rockies is very very frustrating.

Down 4-2 after 6 innings, the Pirates got a 4 runs 7th, and they added a run in the 8th to take a 7-4 lead.

The bullpen couldn’t hold it, and the Rockies scored 3 in the 8th and 2 in the 9th to finish a 9-7 victory.

Charlie Morton did his job, holding the Rockies to 2 runs after 5. Sean Burnett didn’t pitch well in the 6th, but Pirate batters bailed him out in the 7th. John Grabow was a disaster in the 8th, and Jesse Chavez was no better in the 9th.

Nyjer Morgan was 4-5 with a run and an RBI. McCutchen was 1-5 with a run and 3 RBI. Brandon Moss went 3-4.

morganlaroche

Live Updates: “, $starter);
$amount=$stopper-$starter;
$good_stuff=substr($rowvalue, $starter+13, $amount-14);
if($starter>$teamchange)$home=1;
$inningarray[$counter]=$inning;
$homearray[$counter]=$home;
$playarray[$counter]=$good_stuff;
$starterarray[$counter]=$starter;
$counter++;
$starter=$starter+1;
}
}

array_multisort($inningarray, $homearray, $starterarray, $playarray);

$loopcount=0;
$currentinning=0;
$currenthalf=1;
while($loopcount$currentinning){
echo(“
Inning $inningarray[$loopcount]
“);
$currentinning++;
}
if($homearray[$loopcount]!=$currenthalf){
if($homearray[$loopcount]==0){echo(“
Away
“);$currenthalf=0;}
if($homearray[$loopcount]==1){echo(“
Home
“);$currenthalf=1;}
}
echo($playarray[$loopcount].”
“);
$loopcount++;
}

?>

“)) {
$starter=strpos($rowvalue, ““);
$stopper=strpos($rowvalue, “
“, $starter);
$amount=$stopper-$starter;
$venue=substr($rowvalue, $starter+12, $amount-12);
}
If(strpos($rowvalue, ““)){
$starter=strpos($rowvalue, ““);
$stopper=strpos($rowvalue, “
“, $starter);
$amount=$stopper-$starter;
If($team==1)$home_first_name=substr($rowvalue, $starter+9, $amount-9);
If($team==0)$away_first_name=substr($rowvalue, $starter+9, $amount-9);
}
If(strpos($rowvalue, ““)){
$starter=strpos($rowvalue, ““);
$stopper=strpos($rowvalue, “
“, $starter);
$amount=$stopper-$starter;
If($team==1)$home_last_name=substr($rowvalue, $starter+10, $amount-10);
If($team==0)$away_last_name=substr($rowvalue, $starter+10, $amount-10);
}
If(strpos($rowvalue, ““)){
$starter=strpos($rowvalue, ““);
$stopper=strpos($rowvalue, “
“, $starter);
$amount=$stopper-$starter;
If($team==1)$home_throwing_hand=substr($rowvalue, $starter+14, $amount-14);
If($team==0)$away_throwing_hand=substr($rowvalue, $starter+14, $amount-14);
}
If(strpos($rowvalue, ““)){
$starter=strpos($rowvalue, ““);
$stopper=strpos($rowvalue, “
“, $starter);
$amount=$stopper-$starter;
If($team==1)$home_wins=substr($rowvalue, $starter+6, $amount-6);
If($team==0)$away_wins=substr($rowvalue, $starter+6, $amount-6);
}
If(strpos($rowvalue, ““)){
$starter=strpos($rowvalue, ““);
$stopper=strpos($rowvalue, “
“, $starter);
$amount=$stopper-$starter;
If($team==1)$home_losses=substr($rowvalue, $starter+8, $amount-8);
If($team==0)$away_losses=substr($rowvalue, $starter+8, $amount-8);
}
If(strpos($rowvalue, ““)){
$starter=strpos($rowvalue, ““);
$stopper=strpos($rowvalue, “
“, $starter);
$amount=$stopper-$starter;
If($team==1)$home_era=substr($rowvalue, $starter+5, $amount-5);
If($team==0)$away_era=substr($rowvalue, $starter+5, $amount-5);
}
If(strpos($rowvalue, ““)){
$starter=strpos($rowvalue, ““);
$stopper=strpos($rowvalue, “
“, $starter);
$amount=$stopper-$starter;
If($team==1)$home_so=substr($rowvalue, $starter+4, $amount-4);
If($team==0)$away_so=substr($rowvalue, $starter+4, $amount-4);
$team–;
}

}
echo $away_first_name . ” ” . $away_last_name . ” (” . $away_throwing_hand . “) (” . $away_wins . “-” . $away_losses . “, ” . $away_era . ” ERA, ” . $away_so . ” K) @ ” . $home_first_name . ” ” . $home_last_name . ” (” . $home_throwing_hand . “) (” . $home_wins . “-” . $home_losses . “, ” . $home_era . ” ERA, ” . $home_so . ” K)

“.$gametime.” EST @ “. $venue;
?>

Post Game Update
The Pirates opened their 3 game series in Colorado tonight. The Rockies are hot under the direction of their new manager Jim Tracy (yes, we all remember him).

The Pirates’ offense was wimpy, but Jack Wilson hit a solo HR in the 7th. Eric Hinske and Andrew McCutchen knocked in two after-the-fact runs in the top of the 9th.

Ross Ohlendorf wasn’t sharp, surrendering 6 runs on 9 hits in 5 innings. Burnett and Meek pitched well. Matt Capps got an inning of work in the 8th, and he gave up a hit and a run.

sancheztracy

Live Updates: “, $starter);
$amount=$stopper-$starter;
$good_stuff=substr($rowvalue, $starter+13, $amount-14);
if($starter>$teamchange)$home=1;
$inningarray[$counter]=$inning;
$homearray[$counter]=$home;
$playarray[$counter]=$good_stuff;
$starterarray[$counter]=$starter;
$counter++;
$starter=$starter+1;
}
}

array_multisort($inningarray, $homearray, $starterarray, $playarray);

$loopcount=0;
$currentinning=0;
$currenthalf=1;
while($loopcount$currentinning){
echo(“
Inning $inningarray[$loopcount]
“);
$currentinning++;
}
if($homearray[$loopcount]!=$currenthalf){
if($homearray[$loopcount]==0){echo(“
Away
“);$currenthalf=0;}
if($homearray[$loopcount]==1){echo(“
Home
“);$currenthalf=1;}
}
echo($playarray[$loopcount].”
“);
$loopcount++;
}

?>

“)) {
$starter=strpos($rowvalue, ““);
$stopper=strpos($rowvalue, “
“, $starter);
$amount=$stopper-$starter;
$venue=substr($rowvalue, $starter+12, $amount-12);
}
If(strpos($rowvalue, ““)){
$starter=strpos($rowvalue, ““);
$stopper=strpos($rowvalue, “
“, $starter);
$amount=$stopper-$starter;
If($team==1)$home_first_name=substr($rowvalue, $starter+9, $amount-9);
If($team==0)$away_first_name=substr($rowvalue, $starter+9, $amount-9);
}
If(strpos($rowvalue, ““)){
$starter=strpos($rowvalue, ““);
$stopper=strpos($rowvalue, “
“, $starter);
$amount=$stopper-$starter;
If($team==1)$home_last_name=substr($rowvalue, $starter+10, $amount-10);
If($team==0)$away_last_name=substr($rowvalue, $starter+10, $amount-10);
}
If(strpos($rowvalue, ““)){
$starter=strpos($rowvalue, ““);
$stopper=strpos($rowvalue, “
“, $starter);
$amount=$stopper-$starter;
If($team==1)$home_throwing_hand=substr($rowvalue, $starter+14, $amount-14);
If($team==0)$away_throwing_hand=substr($rowvalue, $starter+14, $amount-14);
}
If(strpos($rowvalue, ““)){
$starter=strpos($rowvalue, ““);
$stopper=strpos($rowvalue, “
“, $starter);
$amount=$stopper-$starter;
If($team==1)$home_wins=substr($rowvalue, $starter+6, $amount-6);
If($team==0)$away_wins=substr($rowvalue, $starter+6, $amount-6);
}
If(strpos($rowvalue, ““)){
$starter=strpos($rowvalue, ““);
$stopper=strpos($rowvalue, “
“, $starter);
$amount=$stopper-$starter;
If($team==1)$home_losses=substr($rowvalue, $starter+8, $amount-8);
If($team==0)$away_losses=substr($rowvalue, $starter+8, $amount-8);
}
If(strpos($rowvalue, ““)){
$starter=strpos($rowvalue, ““);
$stopper=strpos($rowvalue, “
“, $starter);
$amount=$stopper-$starter;
If($team==1)$home_era=substr($rowvalue, $starter+5, $amount-5);
If($team==0)$away_era=substr($rowvalue, $starter+5, $amount-5);
}
If(strpos($rowvalue, ““)){
$starter=strpos($rowvalue, ““);
$stopper=strpos($rowvalue, “
“, $starter);
$amount=$stopper-$starter;
If($team==1)$home_so=substr($rowvalue, $starter+4, $amount-4);
If($team==0)$away_so=substr($rowvalue, $starter+4, $amount-4);
$team–;
}

}
echo $away_first_name . ” ” . $away_last_name . ” (” . $away_throwing_hand . “) (” . $away_wins . “-” . $away_losses . “, ” . $away_era . ” ERA, ” . $away_so . ” K) @ ” . $home_first_name . ” ” . $home_last_name . ” (” . $home_throwing_hand . “) (” . $home_wins . “-” . $home_losses . “, ” . $home_era . ” ERA, ” . $home_so . ” K)

“.$gametime.” EST @ “. $venue;
?>

Post Game Update
Prior to this game, Tyler Yates was placed on the DL. Tom Gorzelanny was recalled. Nobody is quite sure yet how Gorzo will be used. The bullpen has been struggling more than the starters, so it’s possible that we may see him in relief.

A big seventh inning gave helped the Pirates earn an 11-4 win and a series win over the Colorado Rockies.

mclouth

Live Updates: “, $starter);
$amount=$stopper-$starter;
$good_stuff=substr($rowvalue, $starter+13, $amount-14);
if($starter>$teamchange)$home=1;
$inningarray[$counter]=$inning;
$homearray[$counter]=$home;
$playarray[$counter]=$good_stuff;
$starterarray[$counter]=$starter;
$counter++;
$starter=$starter+1;
}
}

array_multisort($inningarray, $homearray, $starterarray, $playarray);

$loopcount=0;
$currentinning=0;
$currenthalf=1;
while($loopcount$currentinning){
echo(“
Inning $inningarray[$loopcount]
“);
$currentinning++;
}
if($homearray[$loopcount]!=$currenthalf){
if($homearray[$loopcount]==0){echo(“
Away
“);$currenthalf=0;}
if($homearray[$loopcount]==1){echo(“
Home
“);$currenthalf=1;}
}
echo($playarray[$loopcount].”
“);
$loopcount++;
}

?>

“)) {
$starter=strpos($rowvalue, ““);
$stopper=strpos($rowvalue, “
“, $starter);
$amount=$stopper-$starter;
$venue=substr($rowvalue, $starter+12, $amount-12);
}
If(strpos($rowvalue, ““)){
$starter=strpos($rowvalue, ““);
$stopper=strpos($rowvalue, “
“, $starter);
$amount=$stopper-$starter;
If($team==1)$home_first_name=substr($rowvalue, $starter+9, $amount-9);
If($team==0)$away_first_name=substr($rowvalue, $starter+9, $amount-9);
}
If(strpos($rowvalue, ““)){
$starter=strpos($rowvalue, ““);
$stopper=strpos($rowvalue, “
“, $starter);
$amount=$stopper-$starter;
If($team==1)$home_last_name=substr($rowvalue, $starter+10, $amount-10);
If($team==0)$away_last_name=substr($rowvalue, $starter+10, $amount-10);
}
If(strpos($rowvalue, ““)){
$starter=strpos($rowvalue, ““);
$stopper=strpos($rowvalue, “
“, $starter);
$amount=$stopper-$starter;
If($team==1)$home_throwing_hand=substr($rowvalue, $starter+14, $amount-14);
If($team==0)$away_throwing_hand=substr($rowvalue, $starter+14, $amount-14);
}
If(strpos($rowvalue, ““)){
$starter=strpos($rowvalue, ““);
$stopper=strpos($rowvalue, “
“, $starter);
$amount=$stopper-$starter;
If($team==1)$home_wins=substr($rowvalue, $starter+6, $amount-6);
If($team==0)$away_wins=substr($rowvalue, $starter+6, $amount-6);
}
If(strpos($rowvalue, ““)){
$starter=strpos($rowvalue, ““);
$stopper=strpos($rowvalue, “
“, $starter);
$amount=$stopper-$starter;
If($team==1)$home_losses=substr($rowvalue, $starter+8, $amount-8);
If($team==0)$away_losses=substr($rowvalue, $starter+8, $amount-8);
}
If(strpos($rowvalue, ““)){
$starter=strpos($rowvalue, ““);
$stopper=strpos($rowvalue, “
“, $starter);
$amount=$stopper-$starter;
If($team==1)$home_era=substr($rowvalue, $starter+5, $amount-5);
If($team==0)$away_era=substr($rowvalue, $starter+5, $amount-5);
}
If(strpos($rowvalue, ““)){
$starter=strpos($rowvalue, ““);
$stopper=strpos($rowvalue, “
“, $starter);
$amount=$stopper-$starter;
If($team==1)$home_so=substr($rowvalue, $starter+4, $amount-4);
If($team==0)$away_so=substr($rowvalue, $starter+4, $amount-4);
$team–;
}

}
echo $away_first_name . ” ” . $away_last_name . ” (” . $away_throwing_hand . “) (” . $away_wins . “-” . $away_losses . “, ” . $away_era . ” ERA, ” . $away_so . ” K) @ ” . $home_first_name . ” ” . $home_last_name . ” (” . $home_throwing_hand . “) (” . $home_wins . “-” . $home_losses . “, ” . $home_era . ” ERA, ” . $home_so . ” K)

“.$gametime.” EST @ “. $venue;
?>

Nyjer Morgan sat tonight’s game out because of a sore hamstring. It doesn’t sound like any major problem.

The Pirates put 4 singles and a walk together in the bottom half of the 2nd inning to score 4 runs. Bullpens were a big part of this game because rain started to fall in the bottom half of the 2nd inning, and there was a 1:37 delay.

Apparently, Joe Kerrigan has found a mechanical flaw in Matt Capps’s delivery. He allowed a walk in the 9th, but he still walked away with the save.

umbrella

Live Updates: “, $starter);
$amount=$stopper-$starter;
$good_stuff=substr($rowvalue, $starter+13, $amount-14);
if($starter>$teamchange)$home=1;
$inningarray[$counter]=$inning;
$homearray[$counter]=$home;
$playarray[$counter]=$good_stuff;
$starterarray[$counter]=$starter;
$counter++;
$starter=$starter+1;
}
}

array_multisort($inningarray, $homearray, $starterarray, $playarray);

$loopcount=0;
$currentinning=0;
$currenthalf=1;
while($loopcount$currentinning){
echo(“
Inning $inningarray[$loopcount]
“);
$currentinning++;
}
if($homearray[$loopcount]!=$currenthalf){
if($homearray[$loopcount]==0){echo(“
Away
“);$currenthalf=0;}
if($homearray[$loopcount]==1){echo(“
Home
“);$currenthalf=1;}
}
echo($playarray[$loopcount].”
“);
$loopcount++;
}

?>

“)) {
$starter=strpos($rowvalue, ““);
$stopper=strpos($rowvalue, “
“, $starter);
$amount=$stopper-$starter;
$venue=substr($rowvalue, $starter+12, $amount-12);
}
If(strpos($rowvalue, ““)){
$starter=strpos($rowvalue, ““);
$stopper=strpos($rowvalue, “
“, $starter);
$amount=$stopper-$starter;
If($team==1)$home_first_name=substr($rowvalue, $starter+9, $amount-9);
If($team==0)$away_first_name=substr($rowvalue, $starter+9, $amount-9);
}
If(strpos($rowvalue, ““)){
$starter=strpos($rowvalue, ““);
$stopper=strpos($rowvalue, “
“, $starter);
$amount=$stopper-$starter;
If($team==1)$home_last_name=substr($rowvalue, $starter+10, $amount-10);
If($team==0)$away_last_name=substr($rowvalue, $starter+10, $amount-10);
}
If(strpos($rowvalue, ““)){
$starter=strpos($rowvalue, ““);
$stopper=strpos($rowvalue, “
“, $starter);
$amount=$stopper-$starter;
If($team==1)$home_throwing_hand=substr($rowvalue, $starter+14, $amount-14);
If($team==0)$away_throwing_hand=substr($rowvalue, $starter+14, $amount-14);
}
If(strpos($rowvalue, ““)){
$starter=strpos($rowvalue, ““);
$stopper=strpos($rowvalue, “
“, $starter);
$amount=$stopper-$starter;
If($team==1)$home_wins=substr($rowvalue, $starter+6, $amount-6);
If($team==0)$away_wins=substr($rowvalue, $starter+6, $amount-6);
}
If(strpos($rowvalue, ““)){
$starter=strpos($rowvalue, ““);
$stopper=strpos($rowvalue, “
“, $starter);
$amount=$stopper-$starter;
If($team==1)$home_losses=substr($rowvalue, $starter+8, $amount-8);
If($team==0)$away_losses=substr($rowvalue, $starter+8, $amount-8);
}
If(strpos($rowvalue, ““)){
$starter=strpos($rowvalue, ““);
$stopper=strpos($rowvalue, “
“, $starter);
$amount=$stopper-$starter;
If($team==1)$home_era=substr($rowvalue, $starter+5, $amount-5);
If($team==0)$away_era=substr($rowvalue, $starter+5, $amount-5);
}
If(strpos($rowvalue, ““)){
$starter=strpos($rowvalue, ““);
$stopper=strpos($rowvalue, “
“, $starter);
$amount=$stopper-$starter;
If($team==1)$home_so=substr($rowvalue, $starter+4, $amount-4);
If($team==0)$away_so=substr($rowvalue, $starter+4, $amount-4);
$team–;
}

}
echo $away_first_name . ” ” . $away_last_name . ” (” . $away_throwing_hand . “) (” . $away_wins . “-” . $away_losses . “, ” . $away_era . ” ERA, ” . $away_so . ” K) @ ” . $home_first_name . ” ” . $home_last_name . ” (” . $home_throwing_hand . “) (” . $home_wins . “-” . $home_losses . “, ” . $home_era . ” ERA, ” . $home_so . ” K)

“.$gametime.” EST @ “. $venue;
?>

The Rockies come to Pittsburgh for a 3 game series with the Bucs.

Post Game Update:
This game stung in every sense of the word. The Pirates are still struggling to put runs on the board, but thanks to a great start by Paul Maholm, an OK relief effort from Tyler Yates, and a good relief effort from John Grabow, the Bucs were in position to win until Matt Capps took the mound in the top of the ninth.

The only run up to that point came from a Nate McLouth single and stolen base, followed by a Craig Monroe RBI single.

In the top of the ninth, with struggling Capps at the mound, the Rockies went: Ground Rule Double, Home Run, Single, Ground Out, Fly Out, Single, Stolen Base, Single.

In the bottom of the ninth, the Bucs mysteriously pinch hit Ramon Vazquez for Andy LaRoche. Regardless, Huston Street struck out the side to collect the save that Matt Capps left on the mound.

Sigh.

mclouthscores

Live Updates: “, $starter);
$amount=$stopper-$starter;
$good_stuff=substr($rowvalue, $starter+13, $amount-14);
if($starter>$teamchange)$home=1;
$inningarray[$counter]=$inning;
$homearray[$counter]=$home;
$playarray[$counter]=$good_stuff;
$starterarray[$counter]=$starter;
$counter++;
$starter=$starter+1;
}
}

array_multisort($inningarray, $homearray, $starterarray, $playarray);

$loopcount=0;
$currentinning=0;
$currenthalf=1;
while($loopcount$currentinning){
echo(“
Inning $inningarray[$loopcount]
“);
$currentinning++;
}
if($homearray[$loopcount]!=$currenthalf){
if($homearray[$loopcount]==0){echo(“
Away
“);$currenthalf=0;}
if($homearray[$loopcount]==1){echo(“
Home
“);$currenthalf=1;}
}
echo($playarray[$loopcount].”
“);
$loopcount++;
}

?>

Retrosheet’s bevent program takes a Retrosheet event file and creates a complete description of every at-bat that occurred during the game.  To complete the introduction of Retrosheet’s three pieces of software, I’ll once again start with the event file for the Colorado Rockies @ Los Angeles Dodgers game on 4/9/2007 as an example. Here is the event file.

Here is a step-by-step guide for using bevent.exe.

  1. Download bevent.exe from Retrosheet or here, and unzip the executable file.
  2. Put the event file (or a text file that includes many event files) in the same directory as the bevent.exe program.
  3. You also need to have a team file included in the same directory.  A team file is text file that lists every team, their league, and their three-letter abbreviation.  The team file must have a filename of TEAMYYYY.  For example, here is TEAM2007.
  4. Open the Windows Command Prompt. (Start -> Run -> CMD)
  5. Navigate to the directory where you stored bevent.exe, the event file, and the team file.
  6. Type the command: bevent -y 2007 -f 0-96 dodgers_rockies040907.evn (or the name of your event file).  “-y 2007” specifies the year of the game.  If you are generating game info for a game from 1960, make sure you use -y 1960. “-f 0-96” specifies which fields I want bevent to return.  The default is 0-6, 8-9, 12-13, 16-17, 26-40, 43-45 ,51, 58-61.  0-96 means all fields.
  7. If you want to output the game info to a text file (I’d recommend saving as a .csv file so it opens nicely in spreadsheet software), use the command bevent -y 2007 -f 0-96 dodgers_rockies040907.evn > dodgers_rockies_040907_gameinfo.csv.

bevent_screenshot

Here is the output from bevent.exe.

The output is a comma-delimited file that contains the following fields:

0    game id
1    visiting team
2    inning
3    batting team
4    outs
5    balls
6    strikes
7    pitch sequence
8    vis score
9    home score
10   batter
11   batter hand
12   res batter
13   res batter hand
14   pitcher
15   pitcher hand
16   res pitcher
17   res pitcher hand
18   catcher
19   first base
20   second base
21   third base
22   shortstop
23   left field
24   center field
25   right field
26   first runner
27   second runner
28   third runner
29   event text
30   leadoff flag
31   pinchhit flag
32   defensive position
33   lineup position
34   event type
35   batter event flag
36   ab flag
37   hit value
38   SH flag
39   SF flag
40   outs on play
41   double play flag
42   triple play flag
43   RBI on play
44   wild pitch flag
45   passed ball flag
46   fielded by
47   batted ball type
48   bunt flag
49   foul flag
50   hit location
51   num errors
52   1st error player
53   1st error type
54   2nd error player
55   2nd error type
56   3rd error player
57   3rd error type
58   batter dest (5 if scores and unearned, 6 if team unearned)
59   runner on 1st dest (5 if scores and unearned, 6 if team unearned)
60   runner on 2nd dest (5 if scores and unearned, 6 if team unearned)
61   runner on 3rd dest (5 if socres and uneanred, 6 if team unearned)
62   play on batter
63   play on runner on 1st
64   play on runner on 2nd
65   play on runner on 3rd
66   SB for runner on 1st flag
67   SB for runner on 2nd flag
68   SB for runner on 3rd flag
69   CS for runner on 1st flag
70   CS for runner on 2nd flag
71   CS for runner on 3rd flag
72   PO for runner on 1st flag
73   PO for runner on 2nd flag
74   PO for runner on 3rd flag
75   Responsible pitcher for runner on 1st
76   Responsible pitcher for runner on 2nd
77   Responsible pitcher for runner on 3rd
78   New Game Flag
79   End Game Flag
80   Pinch-runner on 1st
81   Pinch-runner on 2nd
82   Pinch-runner on 3rd
83   Runner removed for pinch-runner on 1st
84   Runner removed for pinch-runner on 2nd
85   Runner removed for pinch-runner on 3rd
86   Batter removed for pinch-hitter
87   Position of batter removed for pinch-hitter
88   Fielder with First Putout (0 if none)
89   Fielder with Second Putout (0 if none)
90   Fielder with Third Putout (0 if none)
91   Fielder with First Assist (0 if none)
92   Fielder with Second Assist (0 if none)
93   Fielder with Third Assist (0 if none)
94   Fielder with Fourth Assist (0 if none)
95   Fielder with Fifth Assist (0 if none)
96   event num

Retrosheet’s bgame program takes a Retrosheet event file and creates a game summary. Again, I’ll use the Colorado Rockies @ Los Angeles Dodgers game on 4/9/2007 as an example. Here is the event file.  Here is a step-by-step guide for using bgame.exe.

  1. Download bgame.exe from Retrosheet or here, and unzip the executable file.
  2. Put the event file (or a text file that includes many event files) in the same directory as the bgame.exe program.
  3. You also need to have a team file included in the same directory.  A team file is text file that lists every team, their league, and their three-letter abbreviation.  The team file must have a filename of TEAMYYYY.  For example, here is TEAM2007.
  4. Open the Windows Command Prompt.
  5. Navigate to the directory where you stored bgame.exe, the event file, and the team file.
  6. Type the command: bgame -y 2007 dodgers_rockies040907.evn (or the name of your event file).  -y 2007 specifies the year of the game.  If you are generating game info for a game from 1960, make sure you use -y 1960.
  7. If you want to output the game info to a text file, use the command bgame -y 2007 dodgers_rockies040907.evn > dodgers_rockies_040907_gameinfo.txt.

Here is the output from bgame.exe.

The output is a comma-delimited file that contains the following fields:

0       game id - This is formatted (Home Team Abbreviation + YY + MM + DD + Game Number (see below))
1       date - This is formatted YYMMDD
2       game number - This field shows 0 if only one game was played between the two teams on that day.  If a double-header was scheduled, this field will show either 1 or 2.
3       day of week - Monday, Tuesday, etc
4       start time - This field is text only.  For instance 3:30 would be 330.  All times are assumed to be PM.
5       DH used flag - This field displays a T (true) if the designated hitter rule was used.  Otherwise, this field is F (false).
6       day/night flag - This field is D or N.
7       visiting team - This is the three-letter abbreviation of the visiting team.
8       home team
9       game site - Every ballpark has a special Retrosheet code.  The code is displayed in this field.  Click here for a listing of ballpark codes.
10      visiting starting pitcher - This is the unique Retrosheet ID of the visiting team's starting pitcher.
11      home starting pitcher
12      home plate umpire - This is the unique Retrosheet ID of the home team's starting pitcher.
13      first base umpire
14      second base umpire
15      third base umpire
16      left field umpire - Big games have two additional umpires in the outfield.  This is the unique Retrosheet ID of the left field umpire.  If no left field umpire was used, this field is blank.
17      right field umpire
18      attendance - The game's attendance
19      PS scorer - The name of the scorer.
20      translator - The name of the translator.
21      inputter - The name of the inputter.
22      input time - The time that the game was input.
23      edit time - The time that the game was edited.
24      how scored - How the game was scored: live, online, tv, radio, etc.
25      pitches entered? - Were pitches entered, the final count, or just the results of the at-bat.  This field shows: pitches, count, or none.
26      temperature - The temperature of the game, in Fahrenheit.
27      wind direction - The wind direction (fromcf, fromlf, fromrf, rtol, ltor, tolf, torf, tocf, unknown)
28      wind speed - The wind speed, in MPH.
29      field condition - The field condition (dry, wet, soaked, unknown)
30      precipitation - drizzle, none, rain, showers, snow, unknown
31      sky - cloudy, dome, night, overcast, sunny, unknown
32      time of game - The duration of the game, in minutes.
33      number of innings - The number of innings in the game.
34      visitor final score - The number of runs scored by the visiting team.
35      home final score
36      visitor hits - The number of hits by the visiting team.
37      home hits
38      visitor errors - The number of errors committed by the visiting team.
39      home errors
40      visitor left on base - The number of runners left on base by the visiting team.
41      home left on base
42      winning pitcher - The unique Retrosheet ID for the winning pitcher.
43      losing pitcher - The unique Retrosheet ID for the losing pitcher.
44      save for - The unique Retrosheet ID for the player who earned the save.
45      GW RBI - The unique Retrosheet ID for the player who hit the game-winning RBI.  This used to be an official MLB statistic.
46      visitor batter 1 - The unique Retrosheet ID of the first hitter for the visiting team.
47      visitor position 1 - The numeric position of the first hitter for the visiting team (1=P, 2=C, 3=1B, 4=2B, 5=3B, 6=SS, 7=LF, 8=CF, 9=RF).
48      visitor batter 2
49      visitor position 2
50      visitor batter 3
51      visitor position 3
52      visitor batter 4
53      visitor position 4
54      visitor batter 5
55      visitor position 5
56      visitor batter 6
57      visitor position 6
58      visitor batter 7
59      visitor position 7
60      visitor batter 8
61      visitor position 8
62      visitor batter 9
63      visitor position 9
64      home batter 1
65      home position 1
66      home batter 2
67      home position 2
68      home batter 3
69      home position 3
70      home batter 4
71      home position 4
72      home batter 5
73      home position 5
74      home batter 6
75      home position 6
76      home batter 7
77      home position 7
78      home batter 8
79      home position 8
80      home batter 9
81      home position 9
82      visiting finisher (NULL if complete game) - The final pitcher for the visiting team.
83      home finisher (NULL if complete game)

Retrosheet has developed three (Windows-only) programs that work with their play-by-play event files.  An event file is essentially a text-based representation of an entire baseball game.  Retrosheet offers event files for nearly every MLB game played since 1953.  For example, here is the event file from Colorado Rockies @ Los Angeles Dodgers game on 4/9/2007.

The first program that I’ll outline is box.exe.  Box.exe creates a box score from the Retrosheet event file.  Here’s how you can use box.exe.

  1. Download box.exe from Retrosheet or here, and unzip the executable file.
  2. Put the event file (or a text file that includes many event files) in the same directory as the box.exe program.
  3. You also need to have a team file included in the same directory.  A team file is text file that lists every team, their league, and their three-letter abbreviation.  The team file must have a filename of TEAMYYYY.  For example, team2007.
  4. Open the Windows Command Prompt.
  5. Navigate to the directory where you stored box.exe, the event file, and the team file.
  6. Type the command: box -y 2007 dodgers_rockies040907.evn (or the name of your event file).  -y 2007 specifies the year of the game.  If you are generating a box score for a game from 1960, make sure you use -y 1960.
  7. If you want to output the box score to a text file, use the command box -y 2007 dodgers_rockies040907.evn > dodgers_rockies_040907_boxscore.txt.

Here is the output from box.exe.