Und das zweite Problem...

Mit folgendem Script gebe ich die Files aus dem Ordner /fun/flash/ als Link wieder.

<?
$the_array = Array();
$handle = opendir('fun/flash');
while (false !== ($file = readdir($handle))) {
if ($file != "." && $file != "..") {
$the_array[] = $file;
}
}
closedir($handle);
sort ($the_array);
reset ($the_array);
while (list ($key, $val) = each ($the_array)) {
echo "<a href=index.php?menu=$val>$val</a>
";
}
?>

Klicke ich auf eines der Files, öffnet er mir die News.php.

Hier die Index.php:

--------------------------------------------------------------------------------------

<head>
<link rel="stylesheet" type="Text/css" href="style.css">
</head>

<div id="iebug">
<div id="box">


<div id="bannerl">
<?php
include "banner.php"
?>
</div>



<div id="navil">
<?php
include "navi.php"
?>
</div>



<div id="menul">
<?php
include "menu.php"
?>
</div>



<div id="picturel">
<?php
include "picture.php"
?>
</div>



<div id="nachrichtenl">
<?php
include "nachrichten.php"
?>
</div>



<div id="kalenderl">
<?php
include "kalender.php"
?>
</div>



<div id="inhaltl">
<?php
include "inhalt.php"
?>
</div>



<div id="footerl">
<?php
include "footer.php"
?>
</div>

</div>
</div>

--------------------------------------------------------------------------------------

Und hier die Inhalt.php

--------------------------------------------------------------------------------------

<div id="inhaltc01">
<?php
if(!isset($_GET['menu'])) $_GET['menu'] = "News";
print $_GET['menu'];
?>
</div>



<?php
function utime (){
$time = explode( " ", microtime());
$usec = (double)$time[0];
$sec = (double)$time[1];
return $sec + $usec;
}
$start = utime();
?>

<div id="inhaltc02">

<?php
if(isset($_GET['menu'])) {
switch($_GET['menu']) {

// Navi

case "News":
include "news/news.php";
break;

case "Login":
include "intern/login.php";
break;

case "Impressum":
include "credits/impressum.php";
break;

case "Guestbook":
include "guestbook/guestbook.php";
break;

// Information

case "Nightlife Karlsruhe":
include "information/nightlife.php";
break;

case "Wetter":
include "information/wetter.php";
break;

case "Nachrichten":
include "information/nachrichten.php";
break;

// Guides

case "Computer":
include "guides/computer.php";
break;

case "ATI Radeon 9700 Flashing Guide":
include "guides/computer/ati/ati.php";
break;

case "ULTIMATE BOOT CD - Edit Guide":
include "guides/computer/bootcd/bootcd.php";
break;

case "Internet Explorer - Sichere Einstellungen":
include "guides/computer/ie/ie.php";
break;

case "Sichere VNC Verbindung per OpenSSH":
include "guides/computer/openssh/openssh.php";
break;

case "Ports Auflistung":
include "guides/computer/ports/ports.txt";
break;

case "Spyware vom System entfernen":
include "guides/computer/spyware/spyware.php";
break;

case "Games":
include "guides/games.php";
break;

case"Battlefield 1942 Performance Guide":
include "guides/games/battlefield/battlefield.php";
break;

case "Multimedia":
include "guides/multimedia.php";
break;

case "Canon Powershot A40 Photo Guide":
include "guides/multimedia/canon/canon.php";
break;

case "DVD-Rip Anleitung":
include "guides/multimedia/dvdrip/dvdrip.php";
break;

case "Sony T610 Branding entfernen":
include "guides/multimedia/t610/t610.php";
break;

// Fun

case "Pics":
include "fun/pics/pics.php";
break;

case "Witze | Texte":
include "fun/wt/wt.php";
break;

case "Witze":
include "fun/wt/witze.php";
break;

case "Texte":
include "fun/wt/texte.php";
break;

case "Flash":
include "fun/flash/flash.php";
break;

// Diverses

case "Radio":
include "diverses/radio.php";
break;

case "Charts":
include "diverses/charts.php";
break;

case "Tribute To":
include "diverses/tribute/tribute.php";
break;

case "PC Config":
include "diverses/pcconfig.php";
break;

case "Digital Cam Pics":
include "diverses/cam/campics.php";
break;


// Credits

case "About This Site":
include "credits/about/about.php";
break;

case "Atombombe":
include "credits/about/atombombe.php";
break;

case "Fallout":
include "credits/about/fallout.php";
break;

case "Night After":
include "credits/about/nightafter.php";
break;


case "Links":
include "credits/links.php";
break;

case "Supporting":
include "credits/supporting/supporting.php";
break;

case "Lebenslauf":
include "credits/lebenslauf.php";
break;

// Default Loader

default:
include "news/news.php";
break;
}
} else {
include "news/news.php";
}
?>
</div>

<div id="inhaltc03">
[img]grafik/pfeil.gif[/img]
<?php
$end = utime(); $run = $end - $start; echo "Seite in " . substr($run, 0, 5) . " Sekunden geladen";
?>
</div>

--------------------------------------------------------------------------------------

Muss ich jetzt die ganzen *.swf Files in der inhalt.php bekanntgeben, damit er mit die per default die news.php, weil er den Pfad der *.swf Dateien nicht kenn?

Sorry für den vielen Text, aber ich hab wirklich noch so meine Probleme mit php.