nabend
ich hab selbst eine lösung gefunden google sei dank
ich hab jetzt den inhalt von der inhalt.php in :
PHP-Code:
<?php
if(empty($_GET['main']))
$_GET['main'] = "home";
if(file_exists($_GET['main'].".php")) {
include($_GET['main'].".php");
} else {
include("Main.html");
}
?>
ersetzt.
das geht alles super und ich spar mir die config.php aber nu meckert er
Warning: include(config.php) [function.include]: failed to open stream: No such file or directory in /usr/export/www/vhosts/funnetwork/hosting/m.../Index.php on line 3
Warning: include() [function.include]: Failed opening 'config.php' for inclusion (include_path='.:') in /usr/export/www/vhosts/funnetwork/hosting/m.../Index.php on line 3
dabei lad ich keine config.php
siehe hier: index.php
PHP-Code:
<?php
error_reporting(E_ALL);
echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\"\n";
echo " \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n";
echo " <html>\n";
echo " <head>\n";
echo " <title>Fixierte Navigation nur für moderne Browser</title>\n";
echo " <!--[if lt IE 7]><style type=\"text/css\">\n";
echo " @media screen { html, body { height: 100%; overflow-y: hidden; }\n";
echo " #Scrollbereich { height: 100%; width: 100%; overflow: auto; }\n";
echo " #Inhalt { position: static; } }\n";
echo " </style><![endif]-->\n";
echo " <style type=\"text/css\">\n";
echo " body { font: normal 100.01% Helvetica, Arial, sans-serif; color: black; background-color: white; min-width: 40em; } \n";
echo " html { padding: 0; }\n";
echo " body { margin: 0; padding: 0; }\n";
echo " #Navi { position: absolute; top:114px; left:0px; width:150px; height:200px; }\n";
echo " #Inhalt {margin-left:160px; margin-top:140px; } \n";
echo " #logo { position: absolute; top:0px; left:0px; width:986px; height:114px; } \n";
echo " #Banner { position: absolute; top:114px; right:0px; width:120px; height:114px; } \n";
echo " </style>\n";
echo " </head>\n";
echo " <body>\n";
echo " <div id=\"Scrollbereich\"> \n";
echo " <div id=\"Banner\">\n";
include "Banner/Banner.html";
echo " </div>\n";
echo " <div id=\"logo\">\n";
include "Logo.php";
echo " </div>\n";
echo " <div id=\"Inhalt\">\n";
include "Inhalt.php";
echo " </div>\n";
echo " </div>\n";
echo " <div id=\"Navi\">\n";
include "Navi.html";
echo " </div>\n";
echo " </body>\n";
echo " </html>\n";
;?>
woran kann das liegen?
ich lade auch sonst keine config.php auf irgendeiner seite
mfg
bitte helft mir ich verzweifel