// iplog.php //
<?php
// laad de variablen met de tijd en de datum (makelijk om uit te zoeken
// waneer iemand inlocht
$day = date("l");
$month = date("F");
$year = date("Y");
$date = date("jS");
$hours = date("g");
$minutes = date("i");
$tod = date("A");
if(substr($minutes, 0, 1) == 0)
$minutes = substr($minutes, 1, 2);
?>
<?
//haal het ip op en schrijf het in een variable
$ip = $_SERVER['REMOTE_ADDR'];
?>
<?
$fp=fopen("ip.html","a");
// opent ip.html op te overschrijven
fputs($fp,"$ip<br>Ip gelocht op $day the $date of $month $year. De tijd $hours:$minutes Met dit Ip
=$ip<br>--------------------------------------------------------------------------------------------<br>"); .
// schrijft tekst weg in file.html
fclose($fp);
// sluit ip.html
?>