ja der titel sagt schon was ich erreichen möchte,nur der quellcode spielt nicht so ganz mit: es kommen keine fehlerausgaben und wenn man dann auf einen link klickt steht dort: seite konnte nicht gefunden werden
hier mal der code:
die index.php:
PHP-Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<link rel="stylesheet" type="text/css" href="homepage/CSS/main.css">
<meta name="author" content="Scheithe Lukas">
<meta http-equiv="content-type" content="text/php; charset=iso-8859-1">
<meta name="description" content="Privathomepage Lukas Scheithe">
<meta name="keywords" content="GFX,Programmieren">
<meta name="language" content="de">
<meta name="organization" content="Lukas Scheithe">
<title>Private Homepage von Lukas Scheithe</title>
</head>
<body>
<div class="header"> <?php include("homepage/PHP/links.php"); ?></div>
<div class="navigation"> <?php include("homepage/PHP/links.php"); ?></div>
<div class="seiteninhalt">
<?php
$inc_array = array();
$inc_dir=opendir ("homepage/include/");
while ($inc = readdir ($inc_dir)) {
if($inc != "." && $inc != "..") {
$short_inc = str_replace(".php", "", $inc);
array_push ($inc_array, $short_inc);
}
}
closedir($inc_dir);
if (isset($_GET[link]) && in_array($_GET[link], $inc_array) ) {
include("homepage/include/".$_GET[link].".php");
} else {
include("homepage/PHP/links.php");
}
?>
</div>
</body>
</html>
und hier die links.php:
PHP-Code:
[url="$_SERVER['PHP_SELF']?link=galerie"]Galerie[/url]
[url="$_SERVER['PHP_SELF']?link=home"]Home[/url]
[url="$_SERVER['PHP_SELF']?link=impressum"]Impressum[/url]
[url="$_SERVER['PHP_SELF']?link=kontakt"]Kontakt[/url]
[url="$_SERVER['PHP_SELF']?link=404"]Fehlerseite[/url]
sry,bissl viel quellcode,aber ich denke damit lässt sich das problem sicher lösen.danke schonmal