$fp = fopen ("data/f/gsc.txt", "r");
if (!$fp){
echo "Couldn't open graduate studies committee file. Try again later.";
exit;
}
while (!feof($fp)){
$id = rtrim(fgets ($fp, 4096));
if ( substr($id, 0,1) == ";" ){continue;}
$name = rtrim(fgets ($fp, 4096));
$college = rtrim(fgets ($fp, 4096));
$position = rtrim(fgets ($fp, 4096));
$bos = fgets ($fp, 4096);
?>
echo $name ?>
if ($college!="-") { echo " " . $college;} ?> |
echo $position ?> |
}
fclose($fp);
?>
|
|
$fp = fopen ("data/s/sgov.txt", "r");
if (!$fp){
echo "Couldn't open student government file. Try again later.";
exit;
}
while (!feof($fp)){
$id = rtrim(fgets ($fp, 4096));
if ( substr($id, 0,1) == ";" ){continue;}
$name = rtrim(fgets ($fp, 4096));
$position = rtrim(fgets ($fp, 4096));
$bos = fgets ($fp, 4096);
?>
echo $name ?> |
echo $position ?> |
}
fclose($fp);
?>
|