\n";
echo "Last Update: " . date ("F d Y H:i:s", filemtime($srcfile)) . " UTC";
echo "\n";
//
$lines = file($srcfile);
//
foreach ($lines as $values) {
$data = explode(",", $values);
if ($data[0] == "Pre-Season") {
echo "\n";
echo "Pre-Season\n";
echo " Record: ";
echo $data[1];
echo " |
\n";
echo "DATE | ";
echo "OPPONENT | TIME/ SCORE | ";
echo "TV | ";
echo "
\n";
} elseif ($data[0] == "Regular Season") {
echo "
\n";
echo "
\n";
echo "\n";
echo "Regular Season\n";
echo " Record: ";
echo $data[1];
echo " |
\n";
echo "DATE | ";
echo "OPPONENT | TIME/ SCORE | ";
echo "TV | ";
echo "
\n";
} elseif ($data[0] == "Bye") {
echo "$data[1], $data[2] | ";
echo " * * Bye Week * * |
\n";
} elseif ($data[0] == "Playoffs") {
echo "
";
echo "
\n";
echo "\n";
echo "Playoffs\n";
echo " Record: ";
echo $data[1];
echo " |
\n";
echo "DATE | ";
echo "OPPONENT | TIME/ SCORE | ";
echo "TV | ";
echo "
\n";
} elseif ($data[0] == "away") {
echo "";
echo "$data[1], $data[2] | ";
echo "at ";
echo "$data[4] | $data[5] | $data[6] | ";
echo "
\n";
} else {
echo "";
echo "$data[1], $data[2] | ";
echo "";
echo "$data[4] | $data[5] | $data[6] | ";
echo "
\n";
}
}
echo "
\n";
echo "
\n";
?>