Tach leute hoffe einer weis mir zu helfen... nach ein paar fehlschlägen habe ich mal eine include geschrieben gehabt die relativ sicher ist(denke ich zu mindest)(danke Claudia für dein tutorial http://www.schattenbaum.net)
Jedenfalls kallapt alles bis auf das wenn ich impressum oder auch tutorial aufrufen will. Kommt immer folgende meldung:
PHP-Code:
<?php
$gibsmir = "";
if (!$content) {$gibsmir = "startseite.php";}
if ($content == "home") $gibsmir = "startseite.php";
if ($content == "team") $gibsmir = "team.php";
if ($content == "impressum") $gibsmir = "impressum.php";
if ($content == "tutorial") $gibsmir = "tutorials.php";
if (!$gibsmir) { echo "Seite <b>$content</b> konnte nicht gefunden werden. Hast Du vielleicht die URL manipuliert?"; }
else {
include($gibsmir); }
?>
Code:
Warning: main(): SAFE MODE Restriction in effect. The script whose uid is 0 is not allowed to access ./tutorials.php owned by uid 652 in /home/htdocs/web12/html/index.php on line 149 Warning: main(tutorials.php): failed to open stream: Success in /home/htdocs/web12/html/index.php on line 149 Warning: main(): Failed opening 'tutorials.php' for inclusion (include_path='.') in /home/htdocs/web12/html/index.php on line 149
Kommentar