"; echo "

"; echo "No seminar data available for that semester

"; exit(); } $fp = fopen("seminars/seminars_{$semester}.txt",'r'); $i=0; while (!feof($fp)) { $data[$i] = fgets($fp,2048); $i = $i + 1; } fclose($fp); } ?> "JANUARY", 2 =>"FEBRUARY", 3 =>"MARCH", 4 =>"APRIL", 5 =>"MAY", 6 =>"JUNE", 7 =>"JULY", 8 =>"AUGUST", 9 =>"SEPTEMBER", 10=>"OCTOBER", 11=>"NOVEMBER", 12=>"DECEMBER" ); for ($i=0; $i $line[0], month => $months[(int) $line[1]], day => $line[2], seminar => $line[3], room => $line[4], time => $line[5], name => $line[6], school => $line[7], title => $line[8] ); $talk[day] = preg_replace('/\s+/','',$talk[day]); // Remove all white space $talk[name] = trim($talk[name]); // Strip white space $talk[school] = trim($talk[school]); // Strip white space $talk[title] = trim($talk[title]); // Strip white space if (!empty($talk[day])) { echo "
"; echo "

$talk[month] $talk[day], $talk[year]

"; echo "

"; echo "$talk[seminar]
"; echo "$talk[room]
"; echo "$talk[time]
"; echo "

"; echo "

"; echo "$talk[name]
"; echo "($talk[school])
"; echo "$talk[title]
"; echo "

"; echo "
"; } } } ?>
$title
"; ?>