Ich bin Arnhild Gaul und meine Adresse ist Klausenburger Straße 38 in 01665 Diera-Zehren.
<?php
header('Content-Type: text/html; charset=utf-8');
$seconds_to_cache = 300;
$ts = gmdate("D, d M Y H:i:s", time() + $seconds_to_cache) . " GMT";
header("Expires: $ts");
header("Pragma: cache");
header("Cache-Control: max-age=$seconds_to_cache");
?><!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" xml:lang="de" lang="de">
<head>
<title>Beispielseite Adressgenerator</title>
</head>
<body>
<h1>Beispielseite Adressgenerator</h1>
<p><a href="http://deruwe.de/2009/11/adressgenerator.html">Artikel zum Adressgenerator</a></p>
<?php
include_once 'generator.php';
$a = new Adresse();
?>
<h2>Beispielsatz</h2>
<?php
echo '<p>Ich bin '.$a->getVorname().' '.$a->getNachname().' und meine Adresse ist '.$a->getStrasse().' '.$a->getHausnummer().' in '.$a->getPlzOrt().'.</p>';
?>
<h2>zufällige Männer</h2>
<table cellpadding="4" cellspacing="1" border="1">
<?php
for ($i=0;$i<3;$i++) {
echo '<tr>';
for ($j=0;$j<4;$j++) {
echo '<td>'.$a->getHTML(1).'</td>';
}
echo '</tr>';
}
?>
</table>
<h2>zufällige Frauen</h2>
<table cellpadding="4" cellspacing="1" border="1">
<?php
for ($i=0;$i<3;$i++) {
echo '<tr>';
for ($j=0;$j<4;$j++) {
echo '<td>'.$a->getHTML(2).'</td>';
}
echo '</tr>';
}
?>
</table>
<h2>zufällige Personen</h2>
<table cellpadding="4" cellspacing="1" border="1">
<?php
for ($i=0;$i<3;$i++) {
echo '<tr>';
for ($j=0;$j<4;$j++) {
echo '<td>'.$a->getHTML().'</td>';
}
echo '</tr>';
}
?>
</table>
<hr />
<h2>zufällige dynamische Seiten</h2>
<table cellpadding="4" cellspacing="1" border="1">
<tr>
<?php
for ($i=0;$i<4;$i++) {
echo '<td><ul>';
for ($j=0;$j<15;$j++) {
$name = $a->getVorname().' '.$a->getNachname();
echo '<li><a href="'.$name[0].'">'.$name.'</a></li>';
}
echo '</ul></td>';
}
?>
</tr>
</table>
<hr />
<h2>Quellcode dieser Testseite</h2>
<p><?php show_source(__FILE__); ?></p>
</body>
</html>