for eksempelt hvis du har min side her ved navn index.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="
http://www.w3.org/1999/xhtml"><head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Nixx</title>
<script type="text/JavaScript">
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//-->
</script>
<link href="/css.css" rel="stylesheet" type="text/css" />
</head>
<body bgcolor="#729E98">
<table width="100%" height="100%" cellspacing="1">
<tr>
<td width="15%" rowspan="2"> </td>
<td height="150" colspan="2" valign="bottom" background="/billeder/frankrig-177.jpg" id="logo" style="border: 1px solid #000000; background-color:#999999">
<table width="100%">
<tr>
<td id="menu" style="background:#CCCCCC; filter: Alpha (Opacity=75); border: 1px solid #000000"><a href="brugere.php">Brugere</a> | <a href="debaten.php">Debaten</a> | <a href="java script:;" onclick="MM_openBrWindow('chat.asp','Chatroom','width=700,height=500')">Text chat</a> | <a href="sjov.php">Sjov</a> | <a href="support.php">Support</a> | <a href="kontakt.php">Kontakt</a> </td>
</tr>
</table> </td>
<td width="15%" rowspan="2"> </td>
</tr>
<tr>
<td width="20%" height="243" valign="top" bgcolor="#999999" id="navigation" style="border: 1px solid #000000"><?php
include "logind.php";
?>
<table width="100%">
<tr>
<td style="background:#CCCCCC; border: 1px solid #000000"><p>Copyright © <a href="index.php">Nixx.dk</a> | 2006 </p>
<p><SCRIPT LANGUAGE= VBScript RUNAT=Server>
Sub Application_OnStart
Application.Lock
Application("currentUser") = 0
Application("allUser") = 0
Application.UnLock
End Sub
Sub session_OnEnd
Application.Lock
Application("currentUser") = Application ("currentUser") + 1
Application("allUser") = Application("allUser") + 1
Application.UnLock
End Sub
Sub session_OnEnd
Application.Lock
Application("currentUser") = Application ("currentUser") - 1
Application.UnLock
End Sub
</SCRIPT>
<?
$ip = getenv("REMOTE_ADDR");
$fil = "log.txt";
$f = file($fil);
$antal = count($f);
$yest = time() - 1800;
$o = "0";
$xidag = "f";
$idag = time();
$idag2 = date("Y F d, H:i");
while ($antal > $o) {
$streg = explode(" ", $f[$o]);
if ($ip == $streg[0]) {
$x = "t";
if ($streg[1] > $yest) {
$xidag = "t";
}
}
$o++;
}
if ($xidag == "f") {
$logg = fopen("$fil", "a");
fputs ($log, "$ip $idag, $idag2\n");
fclose ($log);
}
$f = file($fil);
$antal = count($f);
if ($x == "t") {
}
else {
}
?>
</p>
<p><strong>Sidst opdateret:</strong><br />
-<span class="style1">Opdateret d. 08/05-2006</span><br />
-<span class="style1">Opdateret d. 07/05-2006</span></p>
</td>
</tr>
</table>
</td>
<td width="50%" valign="top" id="main" style="border: 1px solid #000000"><?php
include "velkommen.php";
?></td>
</tr>
</table>
</body>
</html>
der er et par side includeret i den kan man så ikke når man klikker på et af linkene oppe i menuen udskifte en af de includerede filer, men hvor man stadig er på siden index.php?