include: HTTP-Header mit Cache-Control

httpheader.php:

<?php
header("Cache-Control: no-cache, no-store, must-revalidate");
header("Pragma: no-cache");
header('Content-Type: text/html; charset=ISO-8859-1');
?>

index.php #1:

<?php include 'httpheader.php'; ?>

Array: Datum mit ausgeschriebenem Monat

<?php $monate = array(1=>"Januar",
                2=>"Februar",
                3=>"Maerz",
                4=>"April",
                5=>"Mai",
                6=>"Juni",
                7=>"Juli",
                8=>"August",
                9=>"September",
                10=>"Oktober",
                11=>"November",
                12=>"Dezember");
$monat = date("n");
$tag = date("d");
$jahr = date("Y");
?>

<p><b>Datum: <?php echo $tag,". ",$monate[$monat]," ",$jahr;?></b></p>

Banner-rotator mit mt_rand

<?php
$Img1 = "/banner/TASK-one.png";
$Url1 = "http://www.TASK-one.tld";
$Alt1 = "TASK-one";

$Img2 = "/banner/TASK-two.png";
$Url2 = "http://www.TASK-two.tld";
$Alt2 = "TASK-two";

$num = mt_rand (1,2);

$Image = ${'Img'.$num};
$URL = ${'Url'.$num};
$Alt = ${'Alt'.$num};

Print "<a href=\"".$URL."\" target=\"_blank\"><img src=\"".$Image."\" alt=\"".$Alt."\" height=\"68\" width=\"300\" border=\"0\" /></a>";
?>