$log = 'contador.log';
$IP = getenv('REMOTE_ADDR');
$add = true;
$hits = 0;
$dia = date("d");
$mes = date("n");
$ano = date("Y");
$data="$dia-$mes-$ano";
$IP="$IP/$data";
if (!file_exists ($log)) {
echo "Error: $log does not exist.";
exit;
}
$h = fopen ($log, 'r');
while (!feof ($h)) {
$line = fgets ($h, 4096);
$line = trim ($line);
if ($line != '')
$hits++;
if ($line == $IP)
$add = false;
}
fclose($h);
if ($add == true) {
$h = fopen ($log, 'a');
fwrite($h, "
$IP");
fclose($h);
$hits++;
}
//echo $hits;
?>
Departamento de Matemática - PUC-Rio
Terms
PUC´s courses structure is based on two semesters (periods) of study per year. You can find below the recommended course structure. The sequence of courses is for illustrative purposes only and not mandatory.
4° Semester
Elective Courses and Extracurricular Activities can be taken in any semester.
Pontifical Catholic University of Rio de Janeiro
Rua Marquês de São Vicente, 225 - Gávea - Rio de Janeiro, RJ - Brasil - 22451-900
Cx. Postal: 38097 - Phone: (55 21) 3527-1001
PUC-RIO © 1992 - 2019. 26 years on the WEB All rights reserved.