Add exams from exam58 to exam98
This commit is contained in:
16
exam92/NotUniqueHC/count.php
Executable file
16
exam92/NotUniqueHC/count.php
Executable file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
function hit_count(){
|
||||
$filename = 'count.txt';
|
||||
$handle = fopen($filename,'r');
|
||||
$current = fread($handle, filesize($filename));
|
||||
fclose($handle);
|
||||
|
||||
$current_inc = $current + 1;
|
||||
|
||||
$handle = fopen($filename, 'w');
|
||||
fwrite($handle, $current_inc);
|
||||
fclose($handle);
|
||||
}
|
||||
|
||||
?>
|
||||
1
exam92/NotUniqueHC/count.txt
Executable file
1
exam92/NotUniqueHC/count.txt
Executable file
@@ -0,0 +1 @@
|
||||
5
|
||||
7
exam92/NotUniqueHC/notuHitcounter.php
Executable file
7
exam92/NotUniqueHC/notuHitcounter.php
Executable file
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
|
||||
include 'count.php';
|
||||
|
||||
hit_count();
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user