bezoekers-teller-op-ip
Gesponsorde koppelingen
PHP script bestanden
Code (php)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php
$bestand = "bestandbezoekers.php";
if(!is_file($bestand))
{
$fp = fopen($bestand, 'a');
fwrite($fp, "<?\\n//");
fclose($fp);
chmod($bestand, 0666);
}
$con = file_get_contents($bestand);
$st = substr_count($con, ";");
if(strpos($con, $_SERVER['REMOTE_ADDR']) === FALSE)
{
$fp = fopen($bestand, 'a');
fwrite($fp, $_SERVER['REMOTE_ADDR'].";");
fclose($fp);
$st++;
}
unset($con);
echo "You are visitor number " . $st;
?>
$bestand = "bestandbezoekers.php";
if(!is_file($bestand))
{
$fp = fopen($bestand, 'a');
fwrite($fp, "<?\\n//");
fclose($fp);
chmod($bestand, 0666);
}
$con = file_get_contents($bestand);
$st = substr_count($con, ";");
if(strpos($con, $_SERVER['REMOTE_ADDR']) === FALSE)
{
$fp = fopen($bestand, 'a');
fwrite($fp, $_SERVER['REMOTE_ADDR'].";");
fclose($fp);
$st++;
}
unset($con);
echo "You are visitor number " . $st;
?>